Ill try to explain better...
mesh is a MeshPtr (from cache), from a Chr object.
In my case, each mesh has 7 parts, with a (sub)mesh each part. I use it to render armors.
What I want is to completly change each part at will, both (sub)mesh and material.
And, as meshes are stored in cache, and Chr base class works with cache pointers... w/e I do in a mesh, will be done in every object in the game with the same mesh (pointer).
Ive tried to manually create a new mesh but without luck, I need a chache pointer of it to work with Chr class, and those cant be created it seems... just from a file :/
Also I tried to set each part at update loop, but its not working as intended.. maybe in draw loop? I'm trying it right now.
Sorry for my english, its not pretty good and Its hard to me to explain myself :/
EDIT: Same history if I update the parts in drawSolid(), which was the mode that made sense to me :/
EDIT2: Updating the parts in drawPrepare() updates correctly the material.. but the mesh keeps chaning randomly over time ^^ (depending of which of the different chrs that share the same mesh is called last I guess)
EDIT3: A solution to my problem might be adding manually a mesh from code to cache. (EE::Meshes)... what do you think?
Thanks for answering