Simplify mesh instance counting.

This commit is contained in:
kovacsv 2021-11-26 20:11:28 +01:00
parent d16f417790
commit b4b899dd28

View File

@ -26,8 +26,8 @@ OV.Model = class extends OV.ModelObject3D
MeshInstanceCount ()
{
let count = 0;
this.EnumerateMeshInstances ((meshInstance) => {
count += 1;
this.root.Enumerate ((node) => {
count += node.MeshIndexCount ();
});
return count;
}