Skip to content

Commit

Permalink
Fix #48
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkensor committed Dec 12, 2024
1 parent 424766f commit bf3803c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ class EPF_SlotManagerComponentSaveData : EPF_ComponentSaveData
if (vector.Distance(localFixedAngles, prefabInfo.m_vAngles) > 0.001)
readResult = EPF_EReadResult.OK;
}

if (!EPF_Const.IsUnset(saveData.m_pTransformation.m_fScale))
{
readResult = EPF_EReadResult.OK;
}
}
}

Expand Down Expand Up @@ -181,7 +186,7 @@ class EPF_SlotManagerComponentSaveData : EPF_ComponentSaveData
Math3D.MatrixIdentity3(transform);
}

if (EPF_Const.IsUnset(persistentTransform.m_fScale))
if (!EPF_Const.IsUnset(persistentTransform.m_fScale))
Math3D.MatrixScale(transform, persistentTransform.m_fScale);

entitySlot.OverrideTransformLS(transform);
Expand Down

0 comments on commit bf3803c

Please sign in to comment.