From cf52eb8bf6d3677c780a083dac40bfc3af30023d Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Wed, 8 Jul 2015 20:51:27 -0400 Subject: [PATCH] Use the actual action start for ATCAnims Perhaps we should inspect the keyframes and use their range instead? --- korman/properties/modifiers/anim.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/korman/properties/modifiers/anim.py b/korman/properties/modifiers/anim.py index 0a757bb..0d8932d 100644 --- a/korman/properties/modifiers/anim.py +++ b/korman/properties/modifiers/anim.py @@ -66,7 +66,7 @@ class PlasmaAnimationModifier(PlasmaModifierProperties): atcanim.autoStart = self.auto_start atcanim.loop = self.loop atcanim.name = "(Entire Animation)" - atcanim.start = 0.0 + atcanim.start = _convert_frame_time(action.frame_range[0]) atcanim.end = _convert_frame_time(action.frame_range[1]) # Simple start and loop info @@ -80,7 +80,7 @@ class PlasmaAnimationModifier(PlasmaModifierProperties): if loop_start is not None: atcanim.loopStart = _convert_frame_time(loop_start.frame) else: - atcanim.loopStart = 0.0 + atcanim.loopStart = _convert_frame_time(action.frame_range[0]) loop_end = markers.get(self.loop_end) if loop_end is not None: atcanim.loopEnd = _convert_frame_time(loop_end.frame)