Sculpt: Fix transform sculpt tools

This commit is contained in:
Joseph Eagar 2021-10-05 14:25:27 -07:00
parent 47cbb9b1ac
commit 8082b19c10
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -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);