소스 검색

Add missing param in loadMaterialTexture

ShiroSmith 6 년 전
부모
커밋
3b1046315b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      h3d/scene/World.hx

+ 1 - 1
h3d/scene/World.hx

@@ -417,7 +417,7 @@ class World extends Object {
 			for( mid in 0...m.materials.length ) {
 				var mat = lib.header.materials[m.materials[mid]];
 				if(mat == null || mat.diffuseTexture == null) continue;
-				var wmat = loadMaterialTexture(r, mat);
+				var wmat = loadMaterialTexture(r, mat, m.name);
 				if( wmat == null ) continue;
 				var data = lib.getBuffers(geom, format.fmt, format.defaults, mid);