Fix bug in parsing gltf node rotations which use an uninitialized var.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user