Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt_undo.c
| Context not available. | |||||
| KeyBlock *kb = key ? BKE_keyblock_find_name(key, unode->shapeName) : NULL; | KeyBlock *kb = key ? BKE_keyblock_find_name(key, unode->shapeName) : NULL; | ||||
| if (kb) { | if (kb) { | ||||
| ob->shapenr = BLI_findindex(&key->block, kb) + 1; | ob->shapenr = BLI_findindex(&key->block, kb); | ||||
| BKE_sculpt_update_mesh_elements(scene, sd, ob, 0, false); | BKE_sculpt_update_mesh_elements(scene, sd, ob, 0, false); | ||||
| WM_event_add_notifier(C, NC_OBJECT | ND_DATA, ob); | WM_event_add_notifier(C, NC_OBJECT | ND_DATA, ob); | ||||
| Context not available. | |||||