[Bf-blender-cvs] [48c41b189a0] temp_bmesh_multires: fix type of code line being after the parenthesis instead of before

Joseph Eagar noreply at git.blender.org
Sun Jun 27 06:40:30 CEST 2021


Commit: 48c41b189a07640518dcc57d214bcaf9a1f4f99e
Author: Joseph Eagar
Date:   Sat Jun 26 21:40:07 2021 -0700
Branches: temp_bmesh_multires
https://developer.blender.org/rB48c41b189a07640518dcc57d214bcaf9a1f4f99e

fix type of code line being after the parenthesis
instead of before

===================================================================

M	source/blender/editors/sculpt_paint/sculpt_undo.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c
index a09a44f7610..37e92192e9f 100644
--- a/source/blender/editors/sculpt_paint/sculpt_undo.c
+++ b/source/blender/editors/sculpt_paint/sculpt_undo.c
@@ -873,10 +873,10 @@ static void sculpt_undo_restore_list(bContext *C, Depsgraph *depsgraph, ListBase
         SCULPT_dyntopo_node_layers_update_offsets(ss);
         BM_log_set_cd_offsets(ss->bm_log, ss->cd_dyn_vert);
       }
-    }
 
-    // PBVH is corrupted at this point, destroy it
-    SCULPT_pbvh_clear(ob);
+      // PBVH is corrupted at this point, destroy it
+      SCULPT_pbvh_clear(ob);
+    }
 
     /* Restore pivot. */
     copy_v3_v3(ss->pivot_pos, unode->pivot_pos);



More information about the Bf-blender-cvs mailing list