sinisterchipmunk / jax

Framework for creating rich WebGL-enabled applications using JavaScript and Ruby
http://jaxgl.com
MIT License
96 stars 16 forks source link

Removing an object from the scene causes infinite recursion in light manager #47

Closed sinisterchipmunk closed 12 years ago

sinisterchipmunk commented 12 years ago

When an object is either marked as lit or as shadow_caster, it is added to the LightManager within the scene when added to the World. When the same object is removed from the World, it causes an infinite recursion error within the LightManager when Jax tries to remove it:

InternalError: too much recursion in http://localhost:3000/assets/jax/webgl/scene/light_manager.js?body=1 (line 30)