MinieLibrary/src/main/java/com/jme3/bullet/animation/DacLinks.java
/**
     * Validate the model's skeleton.
     */
Validate the model's skeleton.
Validate the model ' s skeleton .
private void validateSkeleton() {
        RagUtils.validate(skeleton);
        for (String boneName : listLinkedBoneNames()) {
            Bone bone = findBone(boneName);
            if (bone == null) {
                String msg = String.format(
                        "Linked bone %s not found in skeleton.",
                        MyString.quote(boneName));
                throw new IllegalArgumentException(msg);
            }
            if (bone.getParent() == null) {
                logger3.log(Level.WARNING, "Linked bone {0} is a root bone.",
                        MyString.quote(boneName));
            }
        }
        for (String boneName : listAttachmentBoneNames()) {
            Bone bone = findBone(boneName);
            if (bone == null) {
                String msg = String.format(
                        "Attachment bone %s not found in skeleton.",
                        MyString.quote(boneName));
                throw new IllegalArgumentException(msg);
            }
        }
    }
private void validateSkeleton ( ) { RagUtils . validate ( skeleton ) ; for ( String boneName : listLinkedBoneNames ( ) ) { Bone bone = findBone ( boneName ) ; if ( bone == null ) { String msg = String . format ( "Linked bone %s not found in skeleton." , MyString . quote ( boneName ) ) ; throw new IllegalArgumentException ( msg ) ; } if ( bone . getParent ( ) == null ) { logger3 . log ( Level . WARNING , "Linked bone {0} is a root bone." , MyString . quote ( boneName ) ) ; } } for ( String boneName : listAttachmentBoneNames ( ) ) { Bone bone = findBone ( boneName ) ; if ( bone == null ) { String msg = String . format ( "Attachment bone %s not found in skeleton." , MyString . quote ( boneName ) ) ; throw new IllegalArgumentException ( msg ) ; } } }
Validate the model's skeleton.
Validate the model ' s skeleton .