pgraph: Fix LightAttrib::replace_{on|off}_light()

Fixes #1153
This commit is contained in:
rdb 2022-01-02 13:02:04 +01:00
parent f058bad802
commit 11d5a49d6f

View File

@ -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);
}