BIM: prevent crash when switching BIM_View Render Mode

Fixes #24929.

Disabled animations in viewer to prevent crashes.
This commit is contained in:
Roy-043
2025-12-27 14:48:59 +01:00
committed by Kacper Donat
parent 8b9048a784
commit 2292316f22

View File

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