Page 1 of 1

MeshLoad

Posted: Sun May 17, 2009 9:16 pm
by y offs et
You have to remove the possibility of MeshLoad loading its parent. After you set this and then click the parent Mesh, it sets up an infinite loop.

Posted: Mon May 18, 2009 6:13 am
by kattle87
Actually, more than a bug, it was a feature used to create the recursive "tree" mesh. But I do agree that we must limit somehow the risk of the final user to set up such an infinite loop. Maybe some global counter that asks for the user if it's normal that he loaded a texture something like 20 times in a row?

Posted: Mon May 18, 2009 11:57 am
by VilleK
I have a test for this with the BitmapLoad-component so it makes sense to have one for MeshLoad as well. Of course this will not stop an infinite loop if Mesh1 and Mesh2 loads each other. The quick solution is to simply disallow self-loads at the moment and think of a more general solution in the long term to allow for intentionally recursive meshes/bitmaps.