MinieExamples/src/main/java/jme3utilities/minie/test/TestDac.java
/**
     * Load the saved model from the J3O file.
     */
Load the saved model from the J3O file.
Load the saved model from the J3O file .
private void load() {
        ModelKey key = new ModelKey(saveAssetPath);
        /*
         * Remove any copy from the asset manager's cache.
         */
        assetManager.deleteFromCache(key);
        Spatial loadedScene;
        try {
            loadedScene = assetManager.loadAsset(key);
        } catch (AssetNotFoundException e) {
            logger.log(Level.SEVERE, "Didn''t find asset {0}",
                    MyString.quote(saveAssetPath));
            return;
        }
        logger.log(Level.INFO, "Loaded {0} from asset {1}", new Object[]{
            MyString.quote(loadedScene.getName()),
            MyString.quote(saveAssetPath)
        });
        save(loadedScene, saveAssetPath2);
    }
private void load ( ) { ModelKey key = new ModelKey ( saveAssetPath ) ; /*
         * Remove any copy from the asset manager's cache.
         */ assetManager . deleteFromCache ( key ) ; Spatial loadedScene ; try { loadedScene = assetManager . loadAsset ( key ) ; } catch ( AssetNotFoundException e ) { logger . log ( Level . SEVERE , "Didn''t find asset {0}" , MyString . quote ( saveAssetPath ) ) ; return ; } logger . log ( Level . INFO , "Loaded {0} from asset {1}" , new Object [ ] { MyString . quote ( loadedScene . getName ( ) ) , MyString . quote ( saveAssetPath ) } ) ; save ( loadedScene , saveAssetPath2 ) ; }
Load the saved model from the J3O file.
Load the saved model from the J3O file .