DacWizard/src/main/java/jme3utilities/minie/wizard/Model.java
/**
     * Find the manager of the specified Bone.
     *
     * @param startBone which Bone to analyze (not null, unaffected)
     * @param skeleton the Skeleton containing the Bone
     * @return a bone/torso name (not null)
     */
Find the manager of the specified Bone.

@param startBone which Bone to analyze (not null, unaffected)
@param skeleton the Skeleton containing the Bone
@return a bone/torso name (not null)
Find the manager of the specified Bone . @param startBone which Bone to analyze ( not null unaffected ) @param skeleton the Skeleton containing the Bone @return a bone / torso name ( not null )
private String findManager(Bone startBone, Skeleton skeleton) {
        assert startBone != null;
        String managerName;
        Bone bone = startBone;
        while (true) {
            int boneIndex = skeleton.getBoneIndex(bone);
            if (linkedBones.get(boneIndex)) {
                managerName = bone.getName();
                break;
            }
            bone = bone.getParent();
            if (bone == null) {
                managerName = DacConfiguration.torsoName;
                break;
            }
        }
        assert managerName != null;
        return managerName;
    }
private String findManager ( Bone startBone , Skeleton skeleton ) { assert startBone != null ; String managerName ; Bone bone = startBone ; while ( true ) { int boneIndex = skeleton . getBoneIndex ( bone ) ; if ( linkedBones . get ( boneIndex ) ) { managerName = bone . getName ( ) ; break ; } bone = bone . getParent ( ) ; if ( bone == null ) { managerName = DacConfiguration . torsoName ; break ; } } assert managerName != null ; return managerName ; }
Find the manager of the specified Bone.
Find the manager of the specified Bone .