freeentity on a copied mesh?

Blitz3D Forums/Blitz3D Programming/freeentity on a copied mesh?

stayne(Posted 2008) [#1]
Anyone have issues with this? I'm loading a "master" mesh and copying it for each subsequent entity's mesh. When I use FreeEntity on the subsequent meshes I get an "Entity does not exist" error. Probably just my shabby attention to detail or something...


andy_mc(Posted 2008) [#2]
would need to see some code, are you trying to reference it after it's been deleted?


GfK(Posted 2008) [#3]
CopyEntity creates another instance of an entity, so changes made to one, will apply to all the others too.

Try using CopyMesh instead.


Ross C(Posted 2008) [#4]
FreeEntity doesn't delete the other copies. There must be an error in your code i reckon.


stayne(Posted 2008) [#5]
Yep it's my code, threw together a quick skeleton tester and it works fine. What a mess I've made!

Thanks guys.