Browse Source

Apply suggestions from CR

Co-authored-by: Adam Johnson <AdamJohnso@gmail.com>
pull/290/head
Jrius 3 years ago
parent
commit
8255c6d52c
  1. 2
      korman/exporter/animation.py
  2. 2
      korman/exporter/physics.py

2
korman/exporter/animation.py

@ -397,7 +397,7 @@ class AnimationConverter:
def convert_scale_keyframe(scale): def convert_scale_keyframe(scale):
# Scale: very likely to cause issues. # Scale: very likely to cause issues.
return (a * b for a, b in zip(adjust_scale, scale)) return [a * b for a, b in zip(adjust_scale, scale)]
convert_pos = convert_pos_keyframe convert_pos = convert_pos_keyframe
convert_rot = convert_rot_keyframe convert_rot = convert_rot_keyframe

2
korman/exporter/physics.py

@ -93,7 +93,7 @@ class PhysicsConverter:
if so.sim is None: if so.sim is None:
simIface = self._mgr.add_object(pl=plSimulationInterface, bl=bo) simIface = self._mgr.add_object(pl=plSimulationInterface, bl=bo)
physical = self._mgr.add_object(pl=plGenericPhysical, bl=bo, name=bo.name) physical = self._mgr.add_object(pl=plGenericPhysical, bl=bo)
simIface.physical = physical.key simIface.physical = physical.key
physical.object = so.key physical.object = so.key

Loading…
Cancel
Save