|
@@ -397,7 +397,7 @@ class Scene extends Component implements h3d.IDrawable {
|
|
|
if( onReady == null ) onReady = function(_) {};
|
|
|
try {
|
|
|
t = loadTextureData(res.toImage(), onReady, t);
|
|
|
- t.name = ide.makeRelative(path);
|
|
|
+ t.setName( ide.makeRelative(path));
|
|
|
texCache.set(path, t);
|
|
|
} catch( error : Dynamic ) {
|
|
|
throw "Could not load texure " + texturePath + ":\n" + Std.string(error);
|