Simplify mesh instance counting.
This commit is contained in:
parent
d16f417790
commit
b4b899dd28
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user