From 880787889ce7b557eaef4d02308c739368af91a4 Mon Sep 17 00:00:00 2001 From: Simon Lusenc Date: Mon, 6 Jun 2022 14:29:25 +0200 Subject: [PATCH] Release 2.3 - Final #4 --- addon/io_scs_tools/__init__.py | 2 +- addon/io_scs_tools/operators/scene.py | 14 +++++++------- addon/io_scs_tools/properties/action.py | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/addon/io_scs_tools/__init__.py b/addon/io_scs_tools/__init__.py index 6e742316..93551d74 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 c47179dd..3cf3b912 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 522a8b15..71f9129b 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',