|
|
|
@ -388,10 +388,9 @@ class AnimationConverter:
|
|
|
|
|
if not fcurves and not allow_empty: |
|
|
|
|
return None |
|
|
|
|
|
|
|
|
|
rotation_quaternion = (i for i in fcurves if i.data_path == "rotation_quaternion") |
|
|
|
|
rotation_quaternion = any((i.data_path == "rotation_quaternion" for i in fcurves)) |
|
|
|
|
|
|
|
|
|
pos = self.make_pos_controller(fcurves, "location", xform.to_translation()) |
|
|
|
|
# TODO: support rotation_quaternion |
|
|
|
|
if rotation_quaternion: |
|
|
|
|
rot = self.make_rot_controller(fcurves, "rotation_quaternion", xform.to_quaternion(), 4) |
|
|
|
|
else: |
|
|
|
|