From b7d638e53d03046527fe7323bf383c2ddb44d3c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Derzsi=20D=C3=A1niel?= Date: Tue, 18 Dec 2018 16:49:00 +0200 Subject: [PATCH] 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) --- panda/src/pgraph/billboardEffect.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panda/src/pgraph/billboardEffect.cxx b/panda/src/pgraph/billboardEffect.cxx index d6319021f1..ff44e11202 100644 --- a/panda/src/pgraph/billboardEffect.cxx +++ b/panda/src/pgraph/billboardEffect.cxx @@ -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; } }