Explorar o código

clone Material name

ncannasse %!s(int64=11) %!d(string=hai) anos
pai
achega
7ee93e2320
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      h3d/mat/Material.hx

+ 1 - 0
h3d/mat/Material.hx

@@ -78,6 +78,7 @@ class Material {
 		// DO NOT clone passes (it's up to the superclass to recreate the passes + shaders)
 		m.castShadows = castShadows;
 		m.receiveShadows = receiveShadows;
+		m.name = name;
 		return m;
 	}