mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Prevent errors where decorator is still running and there is no camera
This commit is contained in:
@@ -1609,6 +1609,9 @@ class CutDecorator:
|
||||
cls.installed = None
|
||||
|
||||
def __call__(self, context):
|
||||
if not context.scene.camera:
|
||||
return
|
||||
|
||||
self.addon_prefs = tool.Blender.get_addon_preferences()
|
||||
selected_elements_color = self.addon_prefs.decorator_color_selected
|
||||
|
||||
|
||||
Reference in New Issue
Block a user