BIM: prevent crash when switching BIM_View Render Mode

Fixes #24929.

Disabled animations in viewer to prevent crashes.

(cherry picked from commit 2292316f22)
This commit is contained in:
Roy-043
2025-12-29 21:38:32 +01:00
committed by Max Wilfinger
parent 2d3917c62f
commit 0f8e601e78
+3
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)