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:
authorJason Wilkins <Jason.A.Wilkins@gmail.com>2012-05-03 07:51:30 +0400
committerJason Wilkins <Jason.A.Wilkins@gmail.com>2012-05-03 07:51:30 +0400
commit2a6217859e818fb9a791ed066ef05cf6f9cb02b2 (patch)
tree54d7aedebe81828d5e98d617db9996c8953f33b7 /source/blender/blenkernel
parentaf1720bc77532b2eea999ccd4aa8dfeff69efb62 (diff)
Patch [#30255] Center Last Stroke
Enables the NUMPERIOD view centering operator to work in sculpt mode. Hitting NUMPERIOD while in sculpt mode will center the view on the end of the last sculpting stroke made by the user. This is useful for quickly refocusing on the current work area without fussing with the view controls. It does not zoom into the stroke (slide only). It does nothing if there have been no strokes.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/BKE_paint.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_paint.h b/source/blender/blenkernel/BKE_paint.h
index acf39d83370..bd31a62abf9 100644
--- a/source/blender/blenkernel/BKE_paint.h
+++ b/source/blender/blenkernel/BKE_paint.h
@@ -103,6 +103,10 @@ typedef struct SculptSession {
struct SculptStroke *stroke;
struct StrokeCache *cache;
+
+ /* last paint/sculpt stroke location */
+ int last_stroke_valid;
+ float last_stroke[3];
} SculptSession;
void free_sculptsession(struct Object *ob);