Browse Source

Merge pull request #200 from DoobesURU/patch-1

Fix Rail Camera keyframe issue
pull/202/head
Adam Johnson 4 years ago committed by GitHub
parent
commit
89d4dc653a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      korman/exporter/camera.py

3
korman/exporter/camera.py

@ -206,6 +206,9 @@ class CameraConverter:
f1, f2 = fcurve.evaluate(begin), fcurve.evaluate(end)
if abs(f1 - f2) > 0.001:
break
# to avoid single/duplicate keyframe client crash (per Hoikas)
if any((len(i.keys) == 1 for i in (pos_ctrl.X, pos_ctrl.Y, pos_ctrl.Z) if i is not None)):
raise ExportError("'{}': Rail Camera must have more than one keyframe", bo.name)
else:
# The animation is a loop
path.flags |= plAnimPath.kWrap

Loading…
Cancel
Save