Disable text decorations when not in camera view

This commit is contained in:
Ryan Schultz
2025-11-17 09:01:19 -06:00
parent c5f6d47c44
commit 1b9acadd81
@@ -2015,6 +2015,10 @@ class DecorationsHandler:
if isinstance(space, bpy.types.SpaceView3D) and space.local_view:
return # Don't draw decorations in local view
# disable decorations when not in camera view
if context.region_data.view_perspective != 'CAMERA':
return
if not DrawingsData.is_loaded:
DrawingsData.load()