@@ -808,7 +808,9 @@ class ViewProviderBuildingPart:
|
||||
if hasattr(vobj,prop) and hasattr(child.ViewObject,prop[8:]) and not hasattr(child,"ChildrenOverride"):
|
||||
setattr(child.ViewObject,prop[8:],getattr(vobj,prop))
|
||||
elif prop in ["CutView","CutMargin"]:
|
||||
if hasattr(vobj,"CutView") and FreeCADGui.ActiveDocument.ActiveView:
|
||||
if hasattr(vobj, "CutView") \
|
||||
and FreeCADGui.ActiveDocument.ActiveView \
|
||||
and hasattr(FreeCADGui.ActiveDocument.ActiveView, "getSceneGraph"):
|
||||
sg = FreeCADGui.ActiveDocument.ActiveView.getSceneGraph()
|
||||
if vobj.CutView:
|
||||
from pivy import coin
|
||||
|
||||
Reference in New Issue
Block a user