mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 15:53:55 -04:00
pgraph: LightAttrib::get_on_light(n) should call check_sorted()
This commit is contained in:
parent
35eeb27386
commit
9525ddbfef
@ -42,6 +42,7 @@ get_num_non_ambient_lights() const {
|
|||||||
*/
|
*/
|
||||||
INLINE NodePath LightAttrib::
|
INLINE NodePath LightAttrib::
|
||||||
get_on_light(size_t n) const {
|
get_on_light(size_t n) const {
|
||||||
|
check_sorted();
|
||||||
nassertr(n < _sorted_on_lights.size(), NodePath::fail());
|
nassertr(n < _sorted_on_lights.size(), NodePath::fail());
|
||||||
return _sorted_on_lights[n];
|
return _sorted_on_lights[n];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user