-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add range iterator to LocalVector #70773
Conversation
bd43fb2
to
dd3d53a
Compare
int idx = faces[i].indices[j]; | ||
if (!vtx_remap.has(idx)) { | ||
for (MeshData::Face &face : faces) { | ||
for (int &index : face.indices) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if it makes much sense to take the int as a reference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks really good! I haven't reviewed in depth but we could merge after beta11 is released to have a week to catch potential regressions.
A quick drive-by review: For a vector-like class it is possible to just return a raw pointer for |
a1081ba
to
e606267
Compare
Thanks! |
In this edition of enormous PR that touches every area of the engine I'm adding a range iterator to LocalVector type. I went ahead and also replaced all old loops where I found it applicable.