Hello friends, for the first time I have encountered that big fat red error in console that doesnt make any sense to me (full of strange things that I dont understand and honestly admire those who do).
That error happens when I am disabling point lights.
My lights currently are
1 spot light as “sun” (enabled only during day)
1 point light as “character´s torch” (enabled only during night)
2 point lights as campfires (enabled only during night)
When dawn comes and campfire lights are shut down setEnabled(false), then strange error occurs.
Interesting fact is that when I remove one campfire, then everything is ok, problem is only when I have more than one.
I would like to somehow debug it myself, but this error is completely unreadable for me
As additional info - all 3 point lights has “manualy managed” includedOnlyMeshes list to only enlight meshes that are close enough (but seemignly this error happens even if I remove that management).
If I remove that character´s own pointlight, error still happens.
Does someone have idea what could be possibly wrong ?
Link is here http://darkenlight.net/babylon
Just wait few seconds for dawn of a new day and error will show in console (also sunlight will be corrupted).
Thanx for some ideas in advance, this is tough nut to crack for me :-/
EDIT: Everyting is fine when I let these lights “enabled” but I think that it is bad idea to have more lights active than is neccessary. When character will move around, lights will come and go, I cannot keep all of them active forever. Dispose() produces the same error as disabling (which is kinda expectable).