mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-29 11:46:33 +00:00
Disable text decorations when not in camera view
This commit is contained in:
@@ -2015,6 +2015,10 @@ class DecorationsHandler:
|
|||||||
if isinstance(space, bpy.types.SpaceView3D) and space.local_view:
|
if isinstance(space, bpy.types.SpaceView3D) and space.local_view:
|
||||||
return # Don't draw decorations in 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:
|
if not DrawingsData.is_loaded:
|
||||||
DrawingsData.load()
|
DrawingsData.load()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user