mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 15:53:55 -04:00
gobj: fix Material ambient/diffuse/specular when reading from bam
Fixes #828
This commit is contained in:
parent
24783924d0
commit
0e1b524885
@ -544,6 +544,11 @@ fillin(DatagramIterator &scan, BamReader *manager) {
|
||||
}
|
||||
_refractive_index = scan.get_stdfloat();
|
||||
|
||||
if ((_flags & (F_base_color | F_metallic)) == (F_base_color | F_metallic)) {
|
||||
// Compute the ambient, diffuse and specular settings.
|
||||
set_base_color(_base_color);
|
||||
}
|
||||
|
||||
} else {
|
||||
_ambient.read_datagram(scan);
|
||||
_diffuse.read_datagram(scan);
|
||||
|
Loading…
x
Reference in New Issue
Block a user