diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2008-01-16 10:19:21 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2008-01-16 10:19:21 +0300 |
commit | c6118036bc044bd5f25106dfb0b422ee2310d5ba (patch) | |
tree | b7d3105398c881d155043dc6579bf6e7652f179e /source/blender/src/header_view3d.c | |
parent | f41c3340be9fbd5126a09a514f48cf88af2ec951 (diff) |
== Radial Control ==
* Generalized the interactive brush property control from sculpt mode into a simple API
* Modified sculpt mode to take advantage of this (even fixes some minor bugs!)
* Added shortcuts in particle edit to set brush size/strength (FKEY/shift+FKEY)
Still todo are the other modes that have brushes...
Diffstat (limited to 'source/blender/src/header_view3d.c')
-rw-r--r-- | source/blender/src/header_view3d.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/src/header_view3d.c b/source/blender/src/header_view3d.c index 8102e60c7fb..b476bb6c944 100644 --- a/source/blender/src/header_view3d.c +++ b/source/blender/src/header_view3d.c @@ -113,6 +113,7 @@ #include "BIF_meshtools.h" #include "BIF_poselib.h" #include "BIF_poseobject.h" +#include "BIF_radialcontrol.h" #include "BIF_renderwin.h" #include "BIF_resources.h" #include "BIF_retopo.h" @@ -4402,6 +4403,7 @@ void do_view3d_sculptmenu(void *arg, int event) { SculptData *sd= &G.scene->sculptdata; BrushData *br= sculptmode_brush(); + switch(event) { case 0: case 1: @@ -4445,13 +4447,13 @@ void do_view3d_sculptmenu(void *arg, int event) add_blockhandler(curarea, VIEW3D_HANDLER_OBJECT, UI_PNL_UNSTOW); break; case 15: - sculptmode_propset_init(PropsetTexRot); + sculpt_radialcontrol_start(RADIALCONTROL_ROTATION); break; case 16: - sculptmode_propset_init(PropsetStrength); + sculpt_radialcontrol_start(RADIALCONTROL_STRENGTH); break; case 17: - sculptmode_propset_init(PropsetSize); + sculpt_radialcontrol_start(RADIALCONTROL_SIZE); break; case 18: br->dir= br->dir==1 ? 2 : 1; |