Add extra check for stationary rotation.

This commit is contained in:
Chandler Cox
2023-09-30 22:19:09 -05:00
parent 8edd50c293
commit b943c7ca3e

View File

@@ -369,7 +369,7 @@ namespace FlaxEngine
{
var transform = Transform;
var q = Quaternion.RotationAxis(axis, angle * Mathf.DegreesToRadians);
if (Vector3.NearEqual(point, transform.Translation))
if (Vector3.NearEqual(point, transform.Translation) && orientActor)
transform.Orientation *= q;
else
{