Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-04-19 17:26:17 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-04-19 17:26:17 +0400
commit1d008de24fda06a6d5d9a37b3fabc9134500862e (patch)
treeb35ac2d248173ce5a82ea303122b479bcdce8a3c /source/blender/blenkernel/BKE_paint.h
parente430ee20d55244e9b37a221ef19aea7907e7c01c (diff)
Fix #34818: Sculpting Mode only rotates around geometry origin (bring bug back)
Made it so average coordinate of previous stroke is used as a viewport rotation center when Rotate Around Selection is enabled in user preferences.
Diffstat (limited to 'source/blender/blenkernel/BKE_paint.h')
-rw-r--r--source/blender/blenkernel/BKE_paint.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_paint.h b/source/blender/blenkernel/BKE_paint.h
index f616da4985f..ff5efd3b02b 100644
--- a/source/blender/blenkernel/BKE_paint.h
+++ b/source/blender/blenkernel/BKE_paint.h
@@ -158,6 +158,9 @@ typedef struct SculptSession {
/* last paint/sculpt stroke location */
int last_stroke_valid;
float last_stroke[3];
+
+ float average_stroke_accum[3];
+ int average_stroke_counter;
} SculptSession;
void free_sculptsession(struct Object *ob);