Populate tools: tweak visibility logic
This commit is contained in:
parent
797c7f4c5e
commit
a792d92442
|
@ -176,9 +176,10 @@ def CreateLatticePopulateChildren(name, label, shapeObj, latticeObjFrom, lattice
|
|||
#hide something
|
||||
if (refmode != "Origin" and refmode != "Use PlacementsFrom") or lattice2BaseFeature.isObjectLattice(shapeObj):
|
||||
FreeCADGui.doCommand("f.Object.ViewObject.hide()")
|
||||
FreeCADGui.doCommand("f.PlacementsTo.ViewObject.hide()")
|
||||
if latticeObjFrom is not None:
|
||||
FreeCADGui.doCommand("f.PlacementsFrom.ViewObject.hide()")
|
||||
if lattice2BaseFeature.isObjectLattice(shapeObj):
|
||||
FreeCADGui.doCommand("f.PlacementsTo.ViewObject.hide()")
|
||||
if latticeObjFrom is not None:
|
||||
FreeCADGui.doCommand("f.PlacementsFrom.ViewObject.hide()")
|
||||
|
||||
#finalize
|
||||
FreeCADGui.doCommand("Gui.Selection.addSelection(f)")
|
||||
|
|
|
@ -177,9 +177,10 @@ def CreateLatticePopulateCopies(name, label, shapeObj, latticeObjFrom, latticeOb
|
|||
#hide something
|
||||
if (refmode != "Origin" and refmode != "Use PlacementsFrom") or lattice2BaseFeature.isObjectLattice(shapeObj):
|
||||
FreeCADGui.doCommand("f.Object.ViewObject.hide()")
|
||||
FreeCADGui.doCommand("f.PlacementsTo.ViewObject.hide()")
|
||||
if latticeObjFrom is not None:
|
||||
FreeCADGui.doCommand("f.PlacementsFrom.ViewObject.hide()")
|
||||
if lattice2BaseFeature.isObjectLattice(shapeObj):
|
||||
FreeCADGui.doCommand("f.PlacementsTo.ViewObject.hide()")
|
||||
if latticeObjFrom is not None:
|
||||
FreeCADGui.doCommand("f.PlacementsFrom.ViewObject.hide()")
|
||||
|
||||
#finalize
|
||||
FreeCADGui.doCommand("Gui.Selection.addSelection(f)")
|
||||
|
|
Loading…
Reference in New Issue
Block a user