- Store j3m files in Materials/Generated folder -.-

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10127 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent f604d12879
commit dc8dabb024
  1. 2
      sdk/jme3-materialeditor/src/com/jme3/gde/materials/MaterialPropertyEditor.java

@ -109,7 +109,7 @@ public class MaterialPropertyEditor implements PropertyEditor, SceneExplorerProp
FileObject currentFile = obj.getPrimaryFile();
FileObject currentFolder = pm.getAssetFolder().getFileObject("Materials/Generated");
if (currentFolder == null) {
currentFolder = FileUtil.createFolder(pm.getAssetFolder(), "Materials");
currentFolder = FileUtil.createFolder(pm.getAssetFolder(), "Materials/Generated");
}
int i = 0;
String newFileName = currentFile.getName() + "-" + sanitizeFileName(geom.getName());

Loading…
Cancel
Save