mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
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:
parent
6b8814f9c9
commit
b7d638e53d
@ -375,5 +375,7 @@ fillin(DatagramIterator &scan, BamReader *manager) {
|
|||||||
if (manager->get_file_minor_ver() >= 43) {
|
if (manager->get_file_minor_ver() >= 43) {
|
||||||
_look_at.fillin(scan, manager);
|
_look_at.fillin(scan, manager);
|
||||||
_fixed_depth = scan.get_bool();
|
_fixed_depth = scan.get_bool();
|
||||||
|
} else {
|
||||||
|
_fixed_depth = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user