As pointed out in the issue, this doesn't actually constitute a bug as these methods will only be called when indices and vertices are the same length. However, it's a bit confusing and the indices parameter is unnecessary regardless. This change removes the parameter from both methods and changes the loops to use the length of the vertices array instead.
Fixes #1290.
As pointed out in the issue, this doesn't actually constitute a bug as these methods will only be called when
indices
andvertices
are the same length. However, it's a bit confusing and theindices
parameter is unnecessary regardless. This change removes the parameter from both methods and changes the loops to use the length of the vertices array instead.