diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2009-08-18 05:19:00 +0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2009-08-18 05:19:00 +0400 |
commit | a5da26f59d8cd820ca4d27a06028dd6aaee65784 (patch) | |
tree | 19bf8d39b29bff1b3f97c1476d93e8c29e77a151 /source/blender/makesdna/DNA_brush_types.h | |
parent | 2d7305f12db9cd07c6c9e7cad565d48de7996aa9 (diff) |
2.5/Sculpt:
* Added UI for brush stroke. Contains for now spacing and smooth stroke
* Removed Sculpt UI for airbrush -- doesn't do anything in sculpt mode
* Improved smooth stroke by using float instead of int precision, so smooth stroke is even smoother now
Diffstat (limited to 'source/blender/makesdna/DNA_brush_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_brush_types.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_brush_types.h b/source/blender/makesdna/DNA_brush_types.h index e8962d013f4..52ea298c110 100644 --- a/source/blender/makesdna/DNA_brush_types.h +++ b/source/blender/makesdna/DNA_brush_types.h @@ -58,6 +58,8 @@ typedef struct Brush { int size; /* brush diameter */ float innerradius; /* inner radius after which the falloff starts */ float spacing; /* spacing of paint operations */ + int smooth_stroke_radius; /* turning radius (in pixels) for smooth stroke */ + float smooth_stroke_factor; /* higher values limit fast changes in the stroke direction */ float rate; /* paint operations / second (airbrush) */ float rgb[3]; /* color */ @@ -66,7 +68,7 @@ typedef struct Brush { short texact; /* active texture */ char sculpt_tool; /* active tool */ - char pad; + char pad[1]; } Brush; /* Brush.flag */ |