Fix bug in parsing gltf node rotations which use an uninitialized var.

This commit is contained in:
2026-02-25 22:06:28 +03:00
parent e9d7960409
commit 4ac54c3c96

View File

@@ -198,7 +198,7 @@ namespace ReFuel.Gltf
if (element.TryGetProperty("rotation", out JsonElement rotationElement))
{
transform.Rotation = scaleElement.ToSingleVector(4, Quaternion.Identity);
transform.Rotation = rotationElement.ToSingleVector(4, Quaternion.Identity);
}
if (element.TryGetProperty("translation", out JsonElement translationElement))