Fix #117547: RBD Bake to Keyframes no longer working #117624
|
@ -160,7 +160,7 @@ class BakeToKeyframes(Operator):
|
||||||
# NOTE: assume that on first frame, the starting rotation is appropriate
|
# NOTE: assume that on first frame, the starting rotation is appropriate
|
||||||
obj.rotation_euler = mat.to_euler(rot_mode, obj.rotation_euler)
|
obj.rotation_euler = mat.to_euler(rot_mode, obj.rotation_euler)
|
||||||
|
|
||||||
bpy.ops.anim.keyframe_insert(type='BUILTIN_KSI_LocRot')
|
bpy.ops.anim.keyframe_insert_by_name(type='BUILTIN_KSI_LocRot')
|
||||||
|
|
||||||
# remove baked objects from simulation
|
# remove baked objects from simulation
|
||||||
bpy.ops.rigidbody.objects_remove()
|
bpy.ops.rigidbody.objects_remove()
|
||||||
|
|
Loading…
Reference in New Issue