Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/multires_unsubdivide.c
| Show First 20 Lines • Show All 597 Lines • ▼ Show 20 Lines | switch (loop) { | ||||
| case 3: | case 3: | ||||
| step_x[0] = 0; | step_x[0] = 0; | ||||
| step_x[1] = -1; | step_x[1] = -1; | ||||
| step_y[0] = 1; | step_y[0] = 1; | ||||
| step_y[1] = 0; | step_y[1] = 0; | ||||
| break; | break; | ||||
| default: | default: | ||||
| BLI_assert(!"Should never happen"); | BLI_assert_msg(0, "Should never happen"); | ||||
| break; | break; | ||||
| } | } | ||||
| for (int y = 0; y < orig_grid_size; y++) { | for (int y = 0; y < orig_grid_size; y++) { | ||||
| for (int x = 0; x < orig_grid_size; x++) { | for (int x = 0; x < orig_grid_size; x++) { | ||||
| const int remap_x = origin[1] + (step_x[1] * x) + (step_y[1] * y); | const int remap_x = origin[1] + (step_x[1] * x) + (step_y[1] * y); | ||||
| const int remap_y = origin[0] + (step_x[0] * x) + (step_y[0] * y); | const int remap_y = origin[0] + (step_x[0] * x) + (step_y[0] * y); | ||||
| ▲ Show 20 Lines • Show All 683 Lines • Show Last 20 Lines | |||||