mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
display: fix lighting being disabled when only AmbientLight is on
This commit is contained in:
parent
33d11dba27
commit
f741c9476f
@ -2823,6 +2823,12 @@ do_issue_light() {
|
||||
}
|
||||
|
||||
} else {
|
||||
// Don't forget to still enable lighting if we have only an ambient light.
|
||||
if (!_lighting_enabled) {
|
||||
enable_lighting(true);
|
||||
_lighting_enabled = true;
|
||||
}
|
||||
|
||||
set_ambient_light(target_light->get_ambient_contribution());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user