mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 09:32:37 +00:00
Fix #1056. Fix error in case you switch drawing styles and the style it used to have was deleted.
This commit is contained in:
@@ -3734,6 +3734,7 @@ class ActivateDrawingStyle(bpy.types.Operator):
|
|||||||
bl_label = 'Activate Drawing Style'
|
bl_label = 'Activate Drawing Style'
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
|
if context.scene.camera.data.BIMCameraProperties.active_drawing_style_index >= len(bpy.context.scene.DocProperties.drawing_styles):
|
||||||
self.drawing_style = bpy.context.scene.DocProperties.drawing_styles[context.scene.camera.data.BIMCameraProperties.active_drawing_style_index]
|
self.drawing_style = bpy.context.scene.DocProperties.drawing_styles[context.scene.camera.data.BIMCameraProperties.active_drawing_style_index]
|
||||||
self.set_raster_style()
|
self.set_raster_style()
|
||||||
self.set_query()
|
self.set_query()
|
||||||
|
|||||||
Reference in New Issue
Block a user