BIM: prevent crash when switching BIM_View Render Mode
Fixes #24929. Disabled animations in viewer to prevent crashes.
This commit is contained in:
@@ -769,6 +769,9 @@ def getCoinSVG(cutplane, objs, cameradata=None, linewidth=0.2, singleface=False,
|
||||
view_window = FreeCADGui.createViewer()
|
||||
view_window_name = "Temp" + str(uuid.uuid4().hex[:8])
|
||||
view_window.setName(view_window_name)
|
||||
# disable animations to prevent a crash:
|
||||
# https://github.com/FreeCAD/FreeCAD/issues/24929
|
||||
view_window.setAnimationEnabled(False)
|
||||
inventor_view = view_window.getViewer()
|
||||
|
||||
inventor_view.setBackgroundColor(1, 1, 1)
|
||||
|
||||
Reference in New Issue
Block a user