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

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