Cleanup: typo, and 0 -> false for booleans.
[blender.git] / source / blender / editors / sculpt_paint / sculpt_undo.c
index cd03c3ec7e2633acc19f6b0fadb74e59b35bc360..bf5ddeb71ff04fbcd6a5a4833eaec8bfea96cb29 100644 (file)
@@ -156,7 +156,7 @@ static bool sculpt_undo_restore_coords(bContext *C, DerivedMesh *dm, SculptUndoN
                        if (kb) {
                                ob->shapenr = BLI_findindex(&key->block, kb) + 1;
 
-                               BKE_sculpt_update_mesh_elements(scene, sd, ob, 0, false);
+                               BKE_sculpt_update_mesh_elements(scene, sd, ob, false, false);
                                WM_event_add_notifier(C, NC_OBJECT | ND_DATA, ob);
                        }
                        else {
@@ -490,7 +490,7 @@ static void sculpt_undo_restore_list(bContext *C, ListBase *lb)
                }
        }
 
-       BKE_sculpt_update_mesh_elements(scene, sd, ob, 0, need_mask);
+       BKE_sculpt_update_mesh_elements(scene, sd, ob, false, need_mask);
 
        /* call _after_ sculpt_update_mesh_elements() which may update 'ob->derivedFinal' */
        dm = mesh_get_derived_final(scene, ob, 0);