Simplify mesh instance counting.
This commit is contained in:
parent
d16f417790
commit
b4b899dd28
@ -26,8 +26,8 @@ OV.Model = class extends OV.ModelObject3D
|
|||||||
MeshInstanceCount ()
|
MeshInstanceCount ()
|
||||||
{
|
{
|
||||||
let count = 0;
|
let count = 0;
|
||||||
this.EnumerateMeshInstances ((meshInstance) => {
|
this.root.Enumerate ((node) => {
|
||||||
count += 1;
|
count += node.MeshIndexCount ();
|
||||||
});
|
});
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user