Browse Source

Update material.py

Correct layer animation timing for FPS other than 30.
pull/216/head
Mark Eggert 5 years ago committed by GitHub
parent
commit
3446ef4dde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      korman/exporter/material.py

9
korman/exporter/material.py

@ -535,8 +535,13 @@ class MaterialConverter:
start, end = functools.reduce(lambda x, y: (min(x[0], y[0]), max(x[1], y[1])),
(fcurve.range() for fcurve in fcurves))
atc.begin = start / fps
atc.end = end / fps
# TikiBear - propagate adjustment from AnimationConverter._process_fcurve
if fps == 30.0:
atc.begin = start / fps
atc.end = end / fps
else:
atc.begin = (start * 30) / (fps * fps)
atc.end = (end * 30) / (fps * fps)
layer_props = tex_slot.texture.plasma_layer
if not layer_props.anim_auto_start:

Loading…
Cancel
Save