added a 40s timeout on frame analisys

0.5.7

- added: timeout on scene plit and autocrop border to avoid freezing blender
- ui: minor correction
This commit is contained in:
Pullusb
2021-10-13 19:00:15 +02:00
parent 64695a042f
commit 20ab99889d
6 changed files with 38 additions and 8 deletions
+5 -2
View File
@@ -93,7 +93,7 @@ class GPEXP_OT_add_objects_to_render(bpy.types.Operator):
class GPEXP_OT_split_to_scene(bpy.types.Operator):
bl_idname = "gp.split_to_scene"
bl_label = "Split Objects To Scene"
bl_description = "Take selected objects and send them to separate scene"
bl_description = "Take selected objects and send them to separate scene\n(new scene is named after active object)"
bl_options = {"REGISTER"}
@classmethod
@@ -103,7 +103,10 @@ class GPEXP_OT_split_to_scene(bpy.types.Operator):
mode : bpy.props.StringProperty(default='ALL', options={'SKIP_SAVE'})
def execute(self, context):
fn.split_object_to_scene()
err = fn.split_object_to_scene()
if err:
self.report({'ERROR'}, err)
return {"CANCELLED"}
return {"FINISHED"}