|
|
@ -713,8 +713,7 @@ public class TextureHelper extends AbstractBlenderHelper { |
|
|
|
|
|
|
|
|
|
|
|
List<String> assetNames = new ArrayList<String>(); |
|
|
|
List<String> assetNames = new ArrayList<String>(); |
|
|
|
if (name.startsWith("//")) { |
|
|
|
if (name.startsWith("//")) { |
|
|
|
String relativePath = name.substring(1); |
|
|
|
String relativePath = name.substring(2); |
|
|
|
assetNames.add(relativePath);//use relative path to the asset root folder
|
|
|
|
|
|
|
|
//augument the path with blender key path
|
|
|
|
//augument the path with blender key path
|
|
|
|
BlenderKey blenderKey = dataRepository.getBlenderKey(); |
|
|
|
BlenderKey blenderKey = dataRepository.getBlenderKey(); |
|
|
|
String blenderAssetFolder = blenderKey.getName().substring(0, blenderKey.getName().lastIndexOf('/')); |
|
|
|
String blenderAssetFolder = blenderKey.getName().substring(0, blenderKey.getName().lastIndexOf('/')); |
|
|
@ -727,7 +726,7 @@ public class TextureHelper extends AbstractBlenderHelper { |
|
|
|
for(int i=paths.length-2;i>=0;--i) { |
|
|
|
for(int i=paths.length-2;i>=0;--i) { |
|
|
|
sb.insert(0, '/'); |
|
|
|
sb.insert(0, '/'); |
|
|
|
sb.insert(0, paths[i]); |
|
|
|
sb.insert(0, paths[i]); |
|
|
|
assetNames.add(sb.toString()); |
|
|
|
assetNames.add(0, sb.toString()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|