Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt_expand.c
| Show First 20 Lines • Show All 2,068 Lines • ▼ Show 20 Lines | static void sculpt_expand_undo_push(Object *ob, ExpandCache *expand_cache) | ||||
| switch (expand_cache->target) { | switch (expand_cache->target) { | ||||
| case SCULPT_EXPAND_TARGET_MASK: | case SCULPT_EXPAND_TARGET_MASK: | ||||
| for (int i = 0; i < totnode; i++) { | for (int i = 0; i < totnode; i++) { | ||||
| SCULPT_undo_push_node(ob, nodes[i], SCULPT_UNDO_MASK); | SCULPT_undo_push_node(ob, nodes[i], SCULPT_UNDO_MASK); | ||||
| } | } | ||||
| break; | break; | ||||
| case SCULPT_EXPAND_TARGET_FACE_SETS: | case SCULPT_EXPAND_TARGET_FACE_SETS: | ||||
| SCULPT_undo_push_node(ob, nodes[0], SCULPT_UNDO_FACE_SETS); | for (int i = 0; i < totnode; i++) { | ||||
| SCULPT_undo_push_node(ob, nodes[i], SCULPT_UNDO_FACE_SETS); | |||||
| } | |||||
| break; | break; | ||||
| case SCULPT_EXPAND_TARGET_COLORS: | case SCULPT_EXPAND_TARGET_COLORS: | ||||
| for (int i = 0; i < totnode; i++) { | for (int i = 0; i < totnode; i++) { | ||||
| SCULPT_undo_push_node(ob, nodes[i], SCULPT_UNDO_COLOR); | SCULPT_undo_push_node(ob, nodes[i], SCULPT_UNDO_COLOR); | ||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 253 Lines • Show Last 20 Lines | |||||