I copy a model ( 2 trimeshes) which have animation ( keyframe controllers).
I check the conroller of the copied model, of trimesh 0, it contains the controller
and it has the correct min/max time. But it wont animate no matter what I do.
Keep in mind, if I render the original model, it will animate. I have tested this
On a few diffrent animated md3 models, and no matter what, the copied mesh/controller
wont animate.
Layout of X- (Model Node)
Node
|
Node
|
Trimesh 0 Trimesh 1
Layout of A - (Copy of model)
Node
|
Trimesh 0 Trimesh 1
Controller copyAnim = new KeyframeController();
Node x = (Node)Models.get(name);
CloneCreator y = new CloneCreator(x);
Node a = (Node)y.createCopy();
((Node)x.getChild(0)).getChild(0).getController(0).putClone(copyAnim, y);
a.getChild(0).addController(copyAnim);