diff --git a/lattice2ExposeLinkSub.py b/lattice2ExposeLinkSub.py index 3ff2688..726e046 100644 --- a/lattice2ExposeLinkSub.py +++ b/lattice2ExposeLinkSub.py @@ -28,12 +28,13 @@ __doc__ = "Tool to expose LinkSub properties of objects, by spawning a SubLink o from lattice2Common import * import lattice2SubLink as LSL import lattice2Executer as Executer +from lattice2Subsequencer import linkSubList_convertToOldStyle import FreeCAD as App def ExposeLinkSub(feature, propname): # read links out into reflist variable if feature.getTypeIdOfProperty(propname) == 'App::PropertyLinkSubList': - reflist = getattr(feature,propname) + reflist = linkSubList_convertToOldStyle(getattr(feature,propname)) elif feature.getTypeIdOfProperty(propname) == 'App::PropertyLinkSub': (obj, subnames) = getattr(feature,propname) reflist = [(obj,subname) for subname in subnames] diff --git a/lattice2SubLink.py b/lattice2SubLink.py index 078e2e7..9f92a9d 100644 --- a/lattice2SubLink.py +++ b/lattice2SubLink.py @@ -184,7 +184,7 @@ class ViewProviderSubLink: def claimChildren(self): return [] -def CreateSubLink(object, subnames, looping): +def CreateSubLink(object, subnames, looping = 'Single'): #stabilize links subnames = list(subnames) #'tuple' object does not support item assignment; SubElementNames of SelectionObject is a tuple try: