diff --git a/__init__.py b/__init__.py index 1ca0c73..b13d3b0 100644 --- a/__init__.py +++ b/__init__.py @@ -11,7 +11,7 @@ bl_info = { "name": "SEAnim Support", "author": "SE2Dev", - "version": (0, 4, 0), + "version": (0, 4, 1), "blender": (2, 80, 0), "location": "File > Import", "description": "Import SEAnim", @@ -46,12 +46,12 @@ class ImportSEAnim(bpy.types.Operator, ImportHelper): def execute(self, context): # print("Selected: " + context.active_object.name) from . import import_seanim - start_time = time.clock() + start_time = time.process_time() result = import_seanim.load( self, context, **self.as_keywords(ignore=("filter_glob", "files"))) if not result: self.report({'INFO'}, "Import finished in %.4f sec." % - (time.clock() - start_time)) + (time.process_time() - start_time)) return {'FINISHED'} else: self.report({'ERROR'}, result) @@ -160,11 +160,11 @@ def draw(self, context): def execute(self, context): # print("Selected: " + context.active_object.name) from . import export_seanim - start_time = time.clock() + start_time = time.process_time() result = export_seanim.save(self, context) if not result: self.report({'INFO'}, "Export finished in %.4f sec." % - (time.clock() - start_time)) + (time.process_time() - start_time)) return {'FINISHED'} else: self.report({'ERROR'}, result)