From 3594e90e66f3d4cd5ff2c9b84e34aacd060740b7 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Mon, 11 Jun 2012 00:00:30 +0000 Subject: [PATCH] SDK: - fix creation of unnecessary +Name.material file on ogre import git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9468 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../src/com/jme3/gde/ogrexml/OgreXMLDataObject.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sdk/jme3-ogrexml/src/com/jme3/gde/ogrexml/OgreXMLDataObject.java b/sdk/jme3-ogrexml/src/com/jme3/gde/ogrexml/OgreXMLDataObject.java index 68038f0bc..6720fa96d 100644 --- a/sdk/jme3-ogrexml/src/com/jme3/gde/ogrexml/OgreXMLDataObject.java +++ b/sdk/jme3-ogrexml/src/com/jme3/gde/ogrexml/OgreXMLDataObject.java @@ -86,13 +86,7 @@ public class OgreXMLDataObject extends SpatialAssetDataObject { name = name.substring(0, idx); } FileObject sourceMatFile = getPrimaryFile().getParent().getFileObject(name, "material"); - if (sourceMatFile != null && sourceMatFile.isValid()) { - try { - sourceMatFile.copy(sourceMatFile.getParent(), "+" + sourceMatFile.getName(), sourceMatFile.getExt()); - } catch (IOException ex) { - Exceptions.printStackTrace(ex); - } - } else { + if (sourceMatFile == null || !sourceMatFile.isValid()) { Confirmation msg = new NotifyDescriptor.Confirmation( "No material file found for " + getPrimaryFile().getNameExt() + "\n" + "A file named " + name + ".material should be in the same folder.\n"