Compose: fix bug

This commit is contained in:
DeepSOIC 2015-10-27 23:47:39 +03:00
parent 033aac9081
commit 1234b8657a

View File

@ -81,7 +81,7 @@ class Compose(latticeBaseFeature.LatticeFeature):
tool = obj.Tool.Shape
if tool.ShapeType != 'Compound':
tool = Part.makeCompound([tool])
if obj.FlattenBaseHierarchy:
if obj.FlattenToolHierarchy:
toolChildren = LCE.AllLeaves(tool)
else:
toolChildren = tool.childShapes()