DacWizard/src/main/java/jme3utilities/minie/wizard/Model.java
/**
     * Validate the loaded C-G model for use with DynamicAnimControl.
     *
     * @return a feedback message (not null, not empty) or "" if none
     */
Validate the loaded C-G model for use with DynamicAnimControl.

@return a feedback message (not null, not empty) or "" if none
Validate the loaded C - G model for use with DynamicAnimControl . @return a feedback message ( not null not empty ) or " " if none
String validationFeedback() {
        if (rootSpatial == null) {
            throw new RuntimeException("No model loaded.");
        }
        String result = "";
        Skeleton skeleton = findSkeleton();
        if (skeleton == null) {
            Armature armature = findArmature();
            try {
                RagUtils.validate(rootSpatial);
                RagUtils.validate(armature);
            } catch (IllegalArgumentException exception) {
                result = exception.getMessage();
            }
        } else {
            try {
                RagUtils.validate(rootSpatial);
                RagUtils.validate(skeleton);
            } catch (IllegalArgumentException exception) {
                result = exception.getMessage();
            }
        }
        return result;
    }
String validationFeedback ( ) { if ( rootSpatial == null ) { throw new RuntimeException ( "No model loaded." ) ; } String result = "" ; Skeleton skeleton = findSkeleton ( ) ; if ( skeleton == null ) { Armature armature = findArmature ( ) ; try { RagUtils . validate ( rootSpatial ) ; RagUtils . validate ( armature ) ; } catch ( IllegalArgumentException exception ) { result = exception . getMessage ( ) ; } } else { try { RagUtils . validate ( rootSpatial ) ; RagUtils . validate ( skeleton ) ; } catch ( IllegalArgumentException exception ) { result = exception . getMessage ( ) ; } } return result ; }
Validate the loaded C-G model for use with DynamicAnimControl.
Validate the loaded C - G model for use with DynamicAnimControl .