diff --git a/addon/io_scs_tools/__init__.py b/addon/io_scs_tools/__init__.py index 6e74231..93551d7 100644 --- a/addon/io_scs_tools/__init__.py +++ b/addon/io_scs_tools/__init__.py @@ -22,7 +22,7 @@ "name": "SCS Tools", "description": "Setup models, Import-Export SCS data format", "author": "Simon Lusenc (50keda), Milos Zajic (4museman)", - "version": (2, 3, "aa16aece"), + "version": (2, 3, "da4d9811"), "blender": (3, 0, 0), "location": "File > Import-Export", "doc_url": "http://modding.scssoft.com/wiki/Documentation/Tools/SCS_Blender_Tools", diff --git a/addon/io_scs_tools/operators/scene.py b/addon/io_scs_tools/operators/scene.py index c47179d..3cf3b91 100644 --- a/addon/io_scs_tools/operators/scene.py +++ b/addon/io_scs_tools/operators/scene.py @@ -798,22 +798,22 @@ def execute(self, context): # print(' %i keyframe: %s' % (keyframe_i, str(keyframe.co))) # INCREASE GLOBAL RANGE - scene.frame_start /= 2 - scene.frame_end /= 2 + scene.frame_start //= 2 + scene.frame_end //= 2 # INCREASE PREVIEW RANGE - scene.frame_preview_start /= 2 - scene.frame_preview_end /= 2 + scene.frame_preview_start //= 2 + scene.frame_preview_end //= 2 # INCREASE END FRAME NUMBER IN ALL ANIMATIONS THAT USES THE ACTUAL ACTION for anim in inventory: if anim.action == action.name: - anim.anim_start /= 2 - anim.anim_end /= 2 + anim.anim_start //= 2 + anim.anim_end //= 2 # INCREASE EXPORT STEP # print('anim_export_step: %s' % str(action.scs_props.anim_export_step)) - action.scs_props.anim_export_step /= 2 + action.scs_props.anim_export_step //= 2 return {'FINISHED'} diff --git a/addon/io_scs_tools/properties/action.py b/addon/io_scs_tools/properties/action.py index 522a8b1..71f9129 100644 --- a/addon/io_scs_tools/properties/action.py +++ b/addon/io_scs_tools/properties/action.py @@ -32,7 +32,7 @@ class ActionSCSTools(bpy.types.PropertyGroup): name="Export Step", description="Number of frames to step in action for each iteration trough exporting.", default=1, - min=0, max=128, + min=1, max=128, step=1, options={'HIDDEN'}, subtype='NONE',