Skip to content

Commit 7699c88

Browse files
author
Roberto De Ioris
committed
fixed Transform keys in sequencer
1 parent af1f263 commit 7699c88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/UnrealEnginePython/Private/UObject/UEPySequencer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -751,9 +751,9 @@ 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.GetRotation().X, unwind);
755-
FTransformKey ry = FTransformKey(EKey3DTransformChannel::Rotation, EAxis::Y, transform.GetRotation().Y, unwind);
756-
FTransformKey rz = FTransformKey(EKey3DTransformChannel::Rotation, EAxis::Z, transform.GetRotation().Z, unwind);
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);
757757
section_transform->AddKey(time, rx, (EMovieSceneKeyInterpolation)interpolation);
758758
section_transform->AddKey(time, ry, (EMovieSceneKeyInterpolation)interpolation);
759759
section_transform->AddKey(time, rz, (EMovieSceneKeyInterpolation)interpolation);

0 commit comments

Comments
 (0)