open_toontown_panda3d/panda
rdb 9ba2d7242e gobj: get rid of enforce-attrib-lock, just DTRT instead
This setting causes asserts when modifying certain material flags after they are assigned to a node, in case a shader has been generated that uses the materials, which cannot efficiently detect whether the material has changed.  However, we already sort of have a (inefficient, but effective) solution for this in TextureStage (see #178) that we could just apply here as well: changing the material attributes after such a shader has been generated could call GraphicsStateGuardianBase::mark_rehash_generated_shaders().

In the future, we should replace the material model with one that does not require shader regeneration for such seemingly trivial property changes.

Fixes #370
2018-08-03 21:55:06 +02:00
..
metalibs general: Move inclusion of checkPandaVersion.h to dtoolbase 2018-05-26 18:39:24 -06:00
src gobj: get rid of enforce-attrib-lock, just DTRT instead 2018-08-03 21:55:06 +02:00