Nicolas Cannasse 4 年之前
父節點
當前提交
c012f310bb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hrt/prefab/l3d/MeshSpray.hx

+ 1 - 1
hrt/prefab/l3d/MeshSpray.hx

@@ -858,7 +858,7 @@ class MeshSpray extends Object3D {
 				continue;
 				continue;
 			var batch = batches.get(c.source);
 			var batch = batches.get(c.source);
 			if( batch  == null ) {
 			if( batch  == null ) {
-				var obj = ctx.loadModel(source).toMesh();
+				var obj = ctx.loadModel(c.source).toMesh();
 				batch = new h3d.scene.MeshBatch(cast(obj.primitive,h3d.prim.MeshPrimitive), obj.material, ctx.local3d);
 				batch = new h3d.scene.MeshBatch(cast(obj.primitive,h3d.prim.MeshPrimitive), obj.material, ctx.local3d);
 				batches.set(c.source, batch);
 				batches.set(c.source, batch);
 			}
 			}