private void updateTargetsAndMaterials(Spatial spatial) {
        targets.clear();

        if (spatial instanceof Node) {
            findTargets((Node) spatial);
        } else if (spatial instanceof Geometry) {
            findTargets((Geometry) spatial);
        }
    }
Update the lists of animation targets.

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