Browse Source

fixes with compiler change

ncannasse 6 years ago
parent
commit
9ae10543e4
2 changed files with 2 additions and 2 deletions
  1. 1 1
      hide/Renderer.hx
  2. 1 1
      hide/comp/Scene.hx

+ 1 - 1
hide/Renderer.hx

@@ -95,7 +95,7 @@ class PbrSetup extends h3d.mat.PbrMaterialSetup {
 		var data = sys.io.File.getBytes(path);
 		var pix = hxd.res.Any.fromBytes(path, data).toImage().getPixels();
 		var t = h3d.mat.Texture.fromPixels(pix); // sync
-		t.name = ide.makeRelative(path);
+		t.setName(ide.makeRelative(path));
 		return t;
 	}
 

+ 1 - 1
hide/comp/Scene.hx

@@ -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);