private void switchToSoftware() {
        numberOfJointsParam.setEnabled(false);
        jointMatricesParam.setEnabled(false);

        for (Geometry geometry : targets) {
            Mesh mesh = geometry.getMesh();
            if (mesh != null && mesh.isAnimated()) {
                mesh.prepareForAnim(true);
            }
        }
    }
Creates an armature control. The list of targets will be acquired
automatically when the control is attached to a node.

@param armature the armature
jme3-core/src/main/java/com/jme3/anim/SkinningControl.java