BIM: hide base of railings

This commit is contained in:
Roy-043
2025-07-13 17:26:07 +02:00
committed by Yorik van Havre
parent 321a294f2d
commit 0baa28ed24

View File

@@ -542,6 +542,8 @@ class _Stairs(ArchComponent.Component):
if railingLeftObject.Base:
doc.removeObject(railingLeftObject.Base.Name)
railingLeftWireObject = doc.addObject("Part::Feature","RailingWire")
if FreeCAD.GuiUp:
railingLeftWireObject.ViewObject.hide()
railingLeftObject.Base = railingLeftWireObject
# update the Base object shape
railingLeftObject.Base.Shape = railWireL
@@ -562,6 +564,8 @@ class _Stairs(ArchComponent.Component):
if railingRightObject.Base:
doc.removeObject(railingRightObject.Base.Name)
railingRightWireObject = doc.addObject("Part::Feature","RailingWire")
if FreeCAD.GuiUp:
railingRightWireObject.ViewObject.hide()
railingRightObject.Base = railingRightWireObject
# update the Base object shape
railingRightObject.Base.Shape = railWireR
@@ -1706,5 +1710,3 @@ class _ViewProviderStairs(ArchComponent.ViewProviderComponent):
lst.extend(obj.Subtractions)
return lst
return []