mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-28 15:53:00 +00:00
dff9e7d1c2
clear_scale routed camera, light and speaker objects into bpy.ops.object.transform_apply, which cannot act on that data. It reported "Objects have no data to transform" and left the scale untouched -- the no-op the docstring already describes when it says clearing scale has no impact on cameras. Besides the warning spam on every drawing camera update, the call is a crash vector: transform_apply resolves bpy.context from inside the temp_override, and that has been seen to segfault (EXCEPTION_ACCESS_VIOLATION in BPY_context_member_get, via ctx_wm_python_context_get) when reached from a UI-invoked operator through bim.update_representation on a drawing camera. Return early for those data types instead. Behaviour is unchanged, since the operator was already doing nothing for them. Generated with the assistance of an AI coding tool. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>