Sorry for spamming problems here
As the title implies, I am manipulating a bone on a model. This works, but unfortunately the change to the bone affects all instances of this mesh. I don't want this to happen.
A change to the bone should only affect the model it actually belongs to.
Here is my code:
var skin :SkinModifier = Mesh3D(_model.getChildByName("body")).modifier as SkinModifier;
// Get mouth bone
_mouth = skin.root.getChildByName("Jaw");
_mouth.frames = null;
_mouthMin = _mouth.getPosition().clone();
_mouthMax = _mouthMin.clone();
_mouthMax.x -= 1.4;
I can now fool around with _mouth, but as I said, it affects all instances of the model.
Probably of importance, this is how I assign _model:
_model = modelLoader.clone();
modelLoader is a Flare3DLoader. The clone() is called after it has fully loaded, of course.