Fix to read orthographic camera data. Manual merge for this branch. Fixes #3028

pull/3029/head
Paul Arden 2020-02-25 11:03:07 +11:00
parent 30851b796f
commit fb5b01958a
1 changed files with 4 additions and 4 deletions

View File

@ -1087,10 +1087,10 @@ inline void Camera::Read(Value& obj, Asset& /*r*/)
cameraProperties.perspective.znear = MemberOrDefault(*it, "znear", 0.01f);
}
else {
cameraProperties.ortographic.xmag = MemberOrDefault(obj, "xmag", 1.f);
cameraProperties.ortographic.ymag = MemberOrDefault(obj, "ymag", 1.f);
cameraProperties.ortographic.zfar = MemberOrDefault(obj, "zfar", 100.f);
cameraProperties.ortographic.znear = MemberOrDefault(obj, "znear", 0.01f);
cameraProperties.ortographic.xmag = MemberOrDefault(*it, "xmag", 1.f);
cameraProperties.ortographic.ymag = MemberOrDefault(*it, "ymag", 1.f);
cameraProperties.ortographic.zfar = MemberOrDefault(*it, "zfar", 100.f);
cameraProperties.ortographic.znear = MemberOrDefault(*it, "znear", 0.01f);
}
}