Explorar o código

Decal: set material name

trethaller %!s(int64=6) %!d(string=hai) anos
pai
achega
50efee2613
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      hide/prefab/l3d/Decal.hx

+ 1 - 0
hide/prefab/l3d/Decal.hx

@@ -50,6 +50,7 @@ class Decal extends Object3D {
 
 		var mesh = new h3d.scene.Mesh(h3d.prim.Cube.defaultUnitCube(), ctx.local3d);
 		mesh.material.setDefaultProps("decal");
+		mesh.material.name = "decal";
 
 		ctx.local3d = mesh;
 		ctx.local3d.name = name;