Skip to content

Commit

Permalink
Release 2.3 - Final SCSSoftware#4
Browse files Browse the repository at this point in the history
  • Loading branch information
simon50keda committed Jun 6, 2022
1 parent fce5f87 commit 8807878
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion addon/io_scs_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
14 changes: 7 additions & 7 deletions addon/io_scs_tools/operators/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'}

Expand Down
2 changes: 1 addition & 1 deletion addon/io_scs_tools/properties/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 8807878

Please sign in to comment.