diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2013-01-16 07:20:36 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2013-01-16 07:20:36 +0400 |
commit | e18f90617b4c5525b84a1b6304097725b8978c21 (patch) | |
tree | 34378ae99a919a24e66ac54f41bd9ea60e194afa /source/blender/makesdna | |
parent | a6d9bcd36d6e703b515e4d68dacdc9a0050b3719 (diff) |
Unification of brush code
Move anchored and rake options away from Sculpt struct and to
UnifiedPaintSettings where they may be used by other tools in the future
(carefree whistle...)
No functionality should change but if it does I'll follow the screams...
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_scene_types.h | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h index c8175461c1d..b093239c714 100644 --- a/source/blender/makesdna/DNA_scene_types.h +++ b/source/blender/makesdna/DNA_scene_types.h @@ -814,29 +814,11 @@ typedef struct Sculpt { //char tablet_size, tablet_strength; XXX not used? int radial_symm[3]; - // all this below is used to communicate with the cursor drawing routine - - /* record movement of mouse so that rake can start at an intuitive angle */ - float last_x, last_y; - float last_angle; - - int draw_anchored; - int anchored_size; - float anchored_location[3]; - float anchored_initial_mouse[2]; - - int draw_pressure; - float pressure_value; - - float special_rotation; - /* Maximum edge length for dynamic topology sculpting (in pixels) */ int detail_size; /* Direction used for SCULPT_OT_symmetrize operator */ int symmetrize_direction; - - int pad; } Sculpt; typedef struct UvSculpt { @@ -899,7 +881,24 @@ typedef struct UnifiedPaintSettings { /* user preferences for sculpt and paint */ int flag; - int pad; + + /* rake rotation */ + + /* record movement of mouse so that rake can start at an intuitive angle */ + float last_x, last_y; + float last_angle; + + float special_rotation; + + // all this below is used to communicate with the cursor drawing routine + int draw_anchored; + int anchored_size; + float anchored_location[3]; + float anchored_initial_mouse[2]; + + /* drawing pressure */ + int draw_pressure; + float pressure_value; } UnifiedPaintSettings; typedef enum { |