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
|
#hide something
|
||||||
if (refmode != "Origin" and refmode != "Use PlacementsFrom") or lattice2BaseFeature.isObjectLattice(shapeObj):
|
if (refmode != "Origin" and refmode != "Use PlacementsFrom") or lattice2BaseFeature.isObjectLattice(shapeObj):
|
||||||
FreeCADGui.doCommand("f.Object.ViewObject.hide()")
|
FreeCADGui.doCommand("f.Object.ViewObject.hide()")
|
||||||
FreeCADGui.doCommand("f.PlacementsTo.ViewObject.hide()")
|
if lattice2BaseFeature.isObjectLattice(shapeObj):
|
||||||
if latticeObjFrom is not None:
|
FreeCADGui.doCommand("f.PlacementsTo.ViewObject.hide()")
|
||||||
FreeCADGui.doCommand("f.PlacementsFrom.ViewObject.hide()")
|
if latticeObjFrom is not None:
|
||||||
|
FreeCADGui.doCommand("f.PlacementsFrom.ViewObject.hide()")
|
||||||
|
|
||||||
#finalize
|
#finalize
|
||||||
FreeCADGui.doCommand("Gui.Selection.addSelection(f)")
|
FreeCADGui.doCommand("Gui.Selection.addSelection(f)")
|
||||||
|
|
|
@ -177,9 +177,10 @@ def CreateLatticePopulateCopies(name, label, shapeObj, latticeObjFrom, latticeOb
|
||||||
#hide something
|
#hide something
|
||||||
if (refmode != "Origin" and refmode != "Use PlacementsFrom") or lattice2BaseFeature.isObjectLattice(shapeObj):
|
if (refmode != "Origin" and refmode != "Use PlacementsFrom") or lattice2BaseFeature.isObjectLattice(shapeObj):
|
||||||
FreeCADGui.doCommand("f.Object.ViewObject.hide()")
|
FreeCADGui.doCommand("f.Object.ViewObject.hide()")
|
||||||
FreeCADGui.doCommand("f.PlacementsTo.ViewObject.hide()")
|
if lattice2BaseFeature.isObjectLattice(shapeObj):
|
||||||
if latticeObjFrom is not None:
|
FreeCADGui.doCommand("f.PlacementsTo.ViewObject.hide()")
|
||||||
FreeCADGui.doCommand("f.PlacementsFrom.ViewObject.hide()")
|
if latticeObjFrom is not None:
|
||||||
|
FreeCADGui.doCommand("f.PlacementsFrom.ViewObject.hide()")
|
||||||
|
|
||||||
#finalize
|
#finalize
|
||||||
FreeCADGui.doCommand("Gui.Selection.addSelection(f)")
|
FreeCADGui.doCommand("Gui.Selection.addSelection(f)")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user