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:
authorNicholas Bishop <nicholasbishop@gmail.com>2012-05-11 00:32:31 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2012-05-11 00:32:31 +0400
commit147b4b13ba3bacc02956d4678b14916ee5cdce53 (patch)
tree2c8a946ca4792446265145eda3412b1b81f29eff /source/blender/makesdna/DNA_brush_types.h
parent26ce1018cdb082964fda8c81de271de4bdf818db (diff)
Add new options to PAINT_OT_brush_select, toggle and create_missing.
The toggle option, if enabled, will toggle back and forth between two brushes. (The first brush of the desired tool type will be toggled to, running the toggle again switches back to the previously selected brush.) If no brush of the desired type is found, and the create_missing option is enabled, a new brush of that type will be created and set.
Diffstat (limited to 'source/blender/makesdna/DNA_brush_types.h')
-rw-r--r--source/blender/makesdna/DNA_brush_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_brush_types.h b/source/blender/makesdna/DNA_brush_types.h
index c531225775a..4b84b819a1c 100644
--- a/source/blender/makesdna/DNA_brush_types.h
+++ b/source/blender/makesdna/DNA_brush_types.h
@@ -57,6 +57,8 @@ typedef struct Brush {
struct CurveMapping *curve; /* falloff curve */
struct MTex mtex;
+ struct Brush *toggle_brush;
+
struct ImBuf *icon_imbuf;
PreviewImage *preview;
char icon_filepath[1024]; /* 1024 = FILE_MAX */