Skip to content

Commit 2af4ebb

Browse files
author
Roberto De Ioris
committed
fixed 20tab#363
1 parent 1260013 commit 2af4ebb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Source/UnrealEnginePython/Private/Wrappers/UEPyFTransform.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ static PyObject *py_ue_ftransform_get_relative_transform(ue_PyFTransform *self,
2828

2929
static PyObject *py_ue_ftransform_get_matrix(ue_PyFTransform *self, PyObject * args)
3030
{
31-
FMatrix matrix = self->transform.ToMatrixWithScale();
31+
FTransform transform = self->transform;
32+
transform.NormalizeRotation();
33+
FMatrix matrix = transform.ToMatrixWithScale();
3234
UScriptStruct *u_struct = FindObject<UScriptStruct>(ANY_PACKAGE, UTF8_TO_TCHAR("Matrix"));
3335
if (!u_struct)
3436
{

0 commit comments

Comments
 (0)