Skip to content

Commit 20b0a2b

Browse files
authored
Fix aspectRatio deserialization (#62)
Co-authored-by: Michael Bond <[email protected]>
1 parent 8d12da1 commit 20b0a2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GLTFSDK/Source/Deserialize.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ namespace
415415

416416
Optional<float> aspectRatio;
417417

418-
auto itAspectRatio = perspectiveIt->value.FindMember("target");
418+
auto itAspectRatio = perspectiveIt->value.FindMember("aspectRatio");
419419
if (itAspectRatio != perspectiveIt->value.MemberEnd())
420420
{
421421
aspectRatio = itAspectRatio->value.GetFloat();

0 commit comments

Comments
 (0)