optimized blenloader for loops #106573

Closed
glitchy-virophage wants to merge 31 commits from (deleted):main into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 1 additions and 0 deletions
Showing only changes of commit ecc2e37bf8 - Show all commits

View File

@ -262,6 +262,7 @@ static void vector_curve_node_remap(bNode *node)
if (cm->curve) {
int change2;
for (int i = cm->totpoint; --i; ) {
//changed it to use decrement instead of increment to use less resources
change2 = (cm->totpoint - i);
cm->curve[change2].x = (cm->curve[change2].x * 2.0f) - 1.0f;
cm->curve[change2].y = (cm->curve[change2].y - 0.5f) * 2.0f;