From 11d5a49d6faffddfddc8cd72df240217fa5cab57 Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 2 Jan 2022 13:02:04 +0100 Subject: [PATCH] pgraph: Fix LightAttrib::replace_{on|off}_light() Fixes #1153 --- panda/src/pgraph/lightAttrib.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panda/src/pgraph/lightAttrib.cxx b/panda/src/pgraph/lightAttrib.cxx index 9820f1bcfa..6416525bfc 100644 --- a/panda/src/pgraph/lightAttrib.cxx +++ b/panda/src/pgraph/lightAttrib.cxx @@ -469,6 +469,7 @@ replace_on_light(const NodePath &source, const NodePath &dest) const { slobj->attrib_unref(); *it = dest; + attrib->_on_lights.sort(); } return return_new(attrib); } @@ -531,6 +532,7 @@ replace_off_light(const NodePath &source, const NodePath &dest) const { slobj->attrib_unref(); *it = dest; + attrib->_off_lights.sort(); } return return_new(attrib); }