BIM: Switch Visibility of ViewObj on/off to restore it in all objs

This commit is contained in:
tetektoza
2025-05-07 21:02:12 +02:00
committed by Yorik van Havre
parent 0da05071a5
commit 1de7024a43

View File

@@ -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()