Skip to content

Commit

Permalink
Merge pull request #193 from QuantumCoderQC/fix-batching
Browse files Browse the repository at this point in the history
No mesh batching for skinned or morphed mesh
  • Loading branch information
luboslenco committed Jun 19, 2023
2 parents e09bca0 + 6dd4a7f commit a02dffc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/iron/data/MeshBatch.hx
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,15 @@ class MeshBatch {
m.materials != null &&
m.materials.length == 1 &&
!m.data.geom.instanced &&
!m.data.isSkinned &&
m.data.raw.morph_target == null &&
!m.depthRead;
return batch;
}

public function addMesh(m: MeshObject, isLod: Bool): Bool {
if (!isBatchable(m) || isLod) { // No instancing, multimat or lod batching
// No instancing, multimat, skinning, morph targets or lod batching
if (!isBatchable(m) || isLod) {
nonBatched.push(m);
return false;
}
Expand Down

0 comments on commit a02dffc

Please sign in to comment.