Browse Source

pgraph: LightAttrib::get_on_light(n) should call check_sorted()

rdb 5 years ago
parent
commit
9525ddbfef
1 changed files with 1 additions and 0 deletions
  1. 1 0
      panda/src/pgraph/lightAttrib.I

+ 1 - 0
panda/src/pgraph/lightAttrib.I

@@ -42,6 +42,7 @@ get_num_non_ambient_lights() const {
  */
 INLINE NodePath LightAttrib::
 get_on_light(size_t n) const {
+  check_sorted();
   nassertr(n < _sorted_on_lights.size(), NodePath::fail());
   return _sorted_on_lights[n];
 }