From f5dd9d42f24b05262b12970da006d4b6e855d99b Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Sat, 30 Jun 2018 13:47:09 +0800 Subject: [PATCH] assembly: sync getSubObjects() API changes --- assembly.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/assembly.py b/assembly.py index f8ea44c..5e8c9e2 100644 --- a/assembly.py +++ b/assembly.py @@ -1352,11 +1352,10 @@ def __init__(self): self.constraints = None super(Assembly,self).__init__() - def getSubObjects(self,obj): - if obj.BuildShape==BuildShapeNone: - partGroup = self.getPartGroup() - return ['{}.{}'.format(partGroup.Name,name) - for name in partGroup.getSubObjects()] + def getSubObjects(self,obj,reason): + partGroup = self.getPartGroup() + return ['{}.{}'.format(partGroup.Name,name) + for name in partGroup.getSubObjects(reason)] def getSubObject(self,obj,subname,retType,mat,transform,depth): if obj.BuildShape==BuildShapeNone: