open_toontown_panda3d/panda
rdb 8e2c0dff4a pgraph: Hack fix for copying model with LightAttrib on root
When a LightAttrib is set on the root of a model and the light is contained within that model, creating a copy (like the one Loader makes automatically) causes the LightAttrib to still point to the original light, not to the newly copied light.

This works around it only for the case when the LightAttrib is set on the root, and only for the case of NodePath::copy_to() (it turns out there are edge cases when doing it in PandaNode::copy_subgraph() that would be hard to explain).

See Moguri/blend2bam#44
2020-12-09 15:51:36 +01:00
..
metalibs general: Don't require BUILDING_* for static builds 2018-08-31 23:54:32 -06:00
src pgraph: Hack fix for copying model with LightAttrib on root 2020-12-09 15:51:36 +01:00