Do not lock key whn undoing to another shapekey while sculpting
[blender-staging.git] / source / blender / editors / sculpt_paint / sculpt_undo.c
index b463c77bbb7b8c9e6abfa110f81fb501726a87f5..eeca174d8024461d14763a7b9a4731339537688b 100644 (file)
@@ -112,7 +112,6 @@ static void sculpt_undo_restore(bContext *C, ListBase *lb)
 
                                if (kb) {
                                        ob->shapenr= BLI_findindex(&key->block, kb) + 1;
-                                       ob->shapeflag|= OB_SHAPE_LOCK;
 
                                        sculpt_update_mesh_elements(scene, ob, 0);
                                        WM_event_add_notifier(C, NC_OBJECT|ND_DATA, ob);