Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editmesh_loopcut.c
| Context not available. | |||||
| if (cuts != lcd->cuts) { | if (cuts != lcd->cuts) { | ||||
| /* allow zero so you can backspace and type in a value | /* allow zero so you can backspace and type in a value | ||||
| * otherwise 1 as minimum would make more sense */ | * otherwise 1 as minimum would make more sense */ | ||||
| lcd->cuts = clamp_i(cuts, 0, SUBD_CUTS_MAX); | lcd->cuts = CLAMPIS(cuts, 0, SUBD_CUTS_MAX); | ||||
| RNA_int_set(op->ptr, "number_cuts", (int)lcd->cuts); | RNA_int_set(op->ptr, "number_cuts", (int)lcd->cuts); | ||||
| ringsel_find_edge(lcd, (int)lcd->cuts); | ringsel_find_edge(lcd, (int)lcd->cuts); | ||||
| show_cuts = true; | show_cuts = true; | ||||
| Context not available. | |||||