2
0
Эх сурвалжийг харах

Better place for begin in Batcher.hx

clementlandrin 2 сар өмнө
parent
commit
3e8108b22a

+ 1 - 1
hrt/prefab/l3d/modellibrary/Batcher.hx

@@ -49,6 +49,7 @@ class Batcher extends h3d.scene.Object {
 			var material = meshEmitter.materials[materialIndex];
 			var pbrProps = (material.props:PbrProps);
 			batch = createMeshBatch(this, pbrProps, material);
+			batch.begin(emitCountTip);
 			batches[bakedMaterial.materialConfig] = batch;
 		}
 		return batch;
@@ -85,7 +86,6 @@ class Batcher extends h3d.scene.Object {
 		}
 
 		batch.primitiveSubParts = [new h3d.scene.MeshBatch.MeshBatchPart()];
-		batch.begin(emitCountTip);
 	}
 
 	override function onRemove() {