From fcf1c72956e7ee523c5a7026e71604aa9f9abf9a Mon Sep 17 00:00:00 2001 From: DeepSOIC Date: Sun, 25 Oct 2015 20:43:59 +0300 Subject: [PATCH] LatticePlacement: Fix creation of single placements Situation where proxy.execute doesn't seem to be equivalent to recompute --- latticeBaseFeature.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/latticeBaseFeature.py b/latticeBaseFeature.py index f6ad315..39f068b 100644 --- a/latticeBaseFeature.py +++ b/latticeBaseFeature.py @@ -131,7 +131,9 @@ class LatticeFeature(): obj.Shape = markers.getNullShapeShape(markerSize) raise ValueError('Lattice object is null') #Feeding empty compounds to FreeCAD seems to cause rendering issues, otherwise it would have been a good idea to output nothing. - obj.Shape = Part.makeCompound(shapes) + sh = Part.makeCompound(shapes) + sh.Placement = obj.Placement #Fix single placement behaving badly + obj.Shape = sh if obj.isLattice == 'Auto-Off': obj.isLattice = 'Auto-On'