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 6 additions and 6 deletions
Showing only changes of commit c9f565181f - Show all commits

View File

@ -256,15 +256,15 @@ static void vector_curve_node_remap(bNode *node)
mapping->flag &= ~CUMA_DO_CLIP;
int change1;
for (int curve_index = CM_TOT; --curve_index) {
change = (CM_TOT - curve_index);
CurveMap *cm = &mapping->cm[change];
for (int curve_index = CM_TOT; --curve_index; ) {
change1 = (CM_TOT - curve_index);
CurveMap *cm = &mapping->cm[change1];
if (cm->curve) {
int change2;
for (int i = cm->totpoint; --i) {
for (int i = cm->totpoint; --i; ) {
change2 = (cm->totpoint - i);
cm->curve[change].x = (cm->curve[change].x * 2.0f) - 1.0f;
cm->curve[chnage].y = (cm->curve[change].y - 0.5f) * 2.0f;
cm->curve[change2].x = (cm->curve[change2].x * 2.0f) - 1.0f;
cm->curve[change2].y = (cm->curve[change2].y - 0.5f) * 2.0f;
}
}
}