Skip to content

Commit f699943

Browse files
author
Roberto De Ioris
committed
fixed sequencer rotations
1 parent 07f7d8b commit f699943

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Source/UnrealEnginePython/Private/UObject/UEPySequencer.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -751,9 +751,12 @@ PyObject *py_ue_sequencer_section_add_key(ue_PyUObject *self, PyObject * args)
751751
section_transform->AddKey(time, ty, (EMovieSceneKeyInterpolation)interpolation);
752752
section_transform->AddKey(time, tz, (EMovieSceneKeyInterpolation)interpolation);
753753

754-
FTransformKey rx = FTransformKey(EKey3DTransformChannel::Rotation, EAxis::X, transform.Rotator().Roll, unwind);
755-
FTransformKey ry = FTransformKey(EKey3DTransformChannel::Rotation, EAxis::Y, transform.Rotator().Pitch, unwind);
756-
FTransformKey rz = FTransformKey(EKey3DTransformChannel::Rotation, EAxis::Z, transform.Rotator().Yaw, unwind);
754+
/*FTransformKey rx = FTransformKey(EKey3DTransformChannel::Rotation, EAxis::X, transform.GetRotation().Rotator().Roll, unwind);
755+
FTransformKey ry = FTransformKey(EKey3DTransformChannel::Rotation, EAxis::Y, transform.GetRotation().Rotator().Pitch, unwind);
756+
FTransformKey rz = FTransformKey(EKey3DTransformChannel::Rotation, EAxis::Z, transform.GetRotation().Rotator().Yaw, unwind);*/
757+
FTransformKey rx = FTransformKey(EKey3DTransformChannel::Rotation, EAxis::X, transform.GetRotation().Euler().X, unwind);
758+
FTransformKey ry = FTransformKey(EKey3DTransformChannel::Rotation, EAxis::Y, transform.GetRotation().Euler().Y, unwind);
759+
FTransformKey rz = FTransformKey(EKey3DTransformChannel::Rotation, EAxis::Z, transform.GetRotation().Euler().Z, unwind);
757760
section_transform->AddKey(time, rx, (EMovieSceneKeyInterpolation)interpolation);
758761
section_transform->AddKey(time, ry, (EMovieSceneKeyInterpolation)interpolation);
759762
section_transform->AddKey(time, rz, (EMovieSceneKeyInterpolation)interpolation);

0 commit comments

Comments
 (0)