MinieLibrary/src/main/java/com/jme3/bullet/animation/RagUtils.java
/**
     * Access the SkeletonControl or SkinningControl in the specified subtree,
     * assuming it doesn't contain more than one.
     *
     * @param subtree a subtree of a scene graph (may be null, unaffected)
     * @return the pre-existing instance, or null if none or multiple
     */
Access the SkeletonControl or SkinningControl in the specified subtree,
assuming it doesn't contain more than one.

@param subtree a subtree of a scene graph (may be null, unaffected)
@return the pre-existing instance, or null if none or multiple
Access the SkeletonControl or SkinningControl in the specified subtree assuming it doesn ' t contain more than one . @param subtree a subtree of a scene graph ( may be null unaffected ) @return the pre - existing instance or null if none or multiple
public static AbstractControl findSControl(Spatial subtree) {
        AbstractControl result = null;
        if (subtree != null) {
            List<SkinningControl> skinners = MySpatial.listControls(subtree,
                    SkinningControl.class, null);
            List<SkeletonControl> skellers = MySpatial.listControls(subtree,
                    SkeletonControl.class, null);
            if (skellers.isEmpty() && skinners.size() == 1) {
                result = skinners.get(0);
            } else if (skinners.isEmpty() && skellers.size() == 1) {
                result = skellers.get(0);
            }
        }
        return result;
    }
public static AbstractControl findSControl ( Spatial subtree ) { AbstractControl result = null ; if ( subtree != null ) { List < SkinningControl > skinners = MySpatial . listControls ( subtree , SkinningControl . class , null ) ; List < SkeletonControl > skellers = MySpatial . listControls ( subtree , SkeletonControl . class , null ) ; if ( skellers . isEmpty ( ) && skinners . size ( ) == 1 ) { result = skinners . get ( 0 ) ; } else if ( skinners . isEmpty ( ) && skellers . size ( ) == 1 ) { result = skellers . get ( 0 ) ; } } return result ; }
Access the SkeletonControl or SkinningControl in the specified subtree,
 assuming it doesn't contain more than one.
Access the SkeletonControl or SkinningControl in the specified subtree assuming it doesn ' t contain more than one .