optimize ModelBatch

This commit is contained in:
MihailRis
2024-07-20 17:59:15 +03:00
parent 4197746c69
commit fba0bca0dc
3 changed files with 21 additions and 84 deletions
+2 -3
View File
@@ -99,9 +99,8 @@ void SkeletonConfig::render(
}
model = modelOverride.model ? modelOverride.model : model;
if (model) {
batch.pushMatrix(skeleton.calculated.matrices[i]);
batch.draw(model, &skeleton.textures);
batch.popMatrix();
batch.draw(
skeleton.calculated.matrices[i], model, &skeleton.textures);
}
}
}