folderName = info.getKey().getFolder();\r
sceneName = sceneName.substring(0, sceneName.length() - ext.length() - 1);\r
\r
- materialList = (MaterialList) \r
- assetManager.loadAsset(new AssetKey(sceneName+".material"));\r
+ try {\r
+ materialList = (MaterialList) \r
+ assetManager.loadAsset(new AssetKey(sceneName+".material"));\r
+ } catch (AssetNotFoundException ex){\r
+ logger.log(Level.WARNING, "Cannot locate material file {0}", ex.getMessage());\r
+ }\r
\r
XMLReader xr = XMLReaderFactory.createXMLReader();\r
xr.setContentHandler(this);\r