pgraph: fix BillboardEffect regression with older models

In older BAM files (version <= 6.42), _fixed_depth will have an uncertain value after loading, leading to incorrect transform calculations, which cause rendering issues (see issue #474)
This commit is contained in:
Derzsi Dániel 2018-12-18 16:49:00 +02:00 committed by GitHub
parent 6b8814f9c9
commit b7d638e53d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -375,5 +375,7 @@ fillin(DatagramIterator &scan, BamReader *manager) {
if (manager->get_file_minor_ver() >= 43) {
_look_at.fillin(scan, manager);
_fixed_depth = scan.get_bool();
} else {
_fixed_depth = false;
}
}