[Bf-blender-cvs] [8082b19c10f] sculpt-dev: Sculpt: Fix transform sculpt tools

Joseph Eagar noreply at git.blender.org
Tue Oct 5 23:25:41 CEST 2021


Commit: 8082b19c10ffd1f7c2928d0e8c643c6351a87d69
Author: Joseph Eagar
Date:   Tue Oct 5 14:25:27 2021 -0700
Branches: sculpt-dev
https://developer.blender.org/rB8082b19c10ffd1f7c2928d0e8c643c6351a87d69

Sculpt: Fix transform sculpt tools

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

M	source/blender/bmesh/bmesh_class.h
M	source/blender/editors/sculpt_paint/sculpt_transform.c

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

diff --git a/source/blender/bmesh/bmesh_class.h b/source/blender/bmesh/bmesh_class.h
index 7aec1ea0721..42c0bec06a7 100644
--- a/source/blender/bmesh/bmesh_class.h
+++ b/source/blender/bmesh/bmesh_class.h
@@ -292,7 +292,7 @@ typedef struct BMFlagLayer {
 
 struct RangeTreeUInt;
 
-//#define WITH_BM_ID_FREELIST
+#define WITH_BM_ID_FREELIST
 
 typedef struct BMesh {
   int totvert, totedge, totloop, totface;
diff --git a/source/blender/editors/sculpt_paint/sculpt_transform.c b/source/blender/editors/sculpt_paint/sculpt_transform.c
index 0c7009fbca7..d09fad42290 100644
--- a/source/blender/editors/sculpt_paint/sculpt_transform.c
+++ b/source/blender/editors/sculpt_paint/sculpt_transform.c
@@ -67,6 +67,8 @@ void ED_sculpt_init_transform(struct bContext *C, Object *ob)
   SculptSession *ss = ob->sculpt;
   Depsgraph *depsgraph = CTX_data_depsgraph_pointer(C);
 
+  ss->stroke_id++;
+
   copy_v3_v3(ss->init_pivot_pos, ss->pivot_pos);
   copy_v4_v4(ss->init_pivot_rot, ss->pivot_rot);
   copy_v3_v3(ss->init_pivot_scale, ss->pivot_scale);



More information about the Bf-blender-cvs mailing list