From 1234b8657a8c2e10f6886515cf23c303756a3c93 Mon Sep 17 00:00:00 2001 From: DeepSOIC Date: Tue, 27 Oct 2015 23:47:39 +0300 Subject: [PATCH] Compose: fix bug --- latticeCompose.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/latticeCompose.py b/latticeCompose.py index a40f13a..f2ea6a5 100644 --- a/latticeCompose.py +++ b/latticeCompose.py @@ -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()