From 2292316f22def2f3338acacbd904cb42fca2e30d Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Sat, 27 Dec 2025 14:48:59 +0100 Subject: [PATCH] BIM: prevent crash when switching BIM_View Render Mode Fixes #24929. Disabled animations in viewer to prevent crashes. --- src/Mod/BIM/ArchSectionPlane.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/BIM/ArchSectionPlane.py b/src/Mod/BIM/ArchSectionPlane.py index 6b1c2a2c60..b12bfa0f25 100644 --- a/src/Mod/BIM/ArchSectionPlane.py +++ b/src/Mod/BIM/ArchSectionPlane.py @@ -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)