BIM: Switch Visibility of ViewObj on/off to restore it in all objs
This commit is contained in:
committed by
Yorik van Havre
parent
0da05071a5
commit
1de7024a43
@@ -480,6 +480,9 @@ class BIM_Views:
|
||||
toolTip = item.toolTip(0)
|
||||
obj = FreeCAD.ActiveDocument.getObject(toolTip)
|
||||
if obj:
|
||||
# We switch visibility to be sure we will show childs of other childs
|
||||
# beforehand, as the Visibility may not be propagated.
|
||||
obj.ViewObject.Visibility = False
|
||||
obj.ViewObject.Visibility = True
|
||||
|
||||
vm = findWidget()
|
||||
|
||||
Reference in New Issue
Block a user