diff options
author | Joseph Eagar <joeedh@gmail.com> | 2009-09-10 07:59:12 +0400 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2009-09-10 07:59:12 +0400 |
commit | 4c072f85d98d6ae7f1322314f8da8b3f2fb40f7d (patch) | |
tree | 41ef4c5a250cd770f2c20fe4ed83c3f92f56334a /source/blender/editors/interface | |
parent | b0a1904d33a1c097a8e8fd56fe9b3c1d3a34ca55 (diff) |
commit of transform pinning patch by Fabian Fricke (frigi). wip hotkey is enter/alt-enter to pin/unpin verts. pinned verts aren't affected by transform, e.g. grab, rotate, etc. this could probably work nicer for proportional editing, but that can be done later. also the UI for this probably needs reviewing and feedback. still, very nice patch by Fabian, something I for one will probably find very useful :)
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/resources.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c index 8aaede7515a..d21aabb5e2d 100644 --- a/source/blender/editors/interface/resources.c +++ b/source/blender/editors/interface/resources.c @@ -355,6 +355,10 @@ char *UI_ThemeGetColorPtr(bTheme *btheme, int spacetype, int colorid) case TH_DOPESHEET_CHANNELSUBOB: cp= ts->ds_subchannel; break; + case TH_PIN: + cp= ts->pin; break; + case TH_PIN_OPAC: + cp= &ts->pin_opac; break; } } @@ -475,6 +479,9 @@ void ui_theme_init_userdef(void) SETCOL(btheme->tv3d.bone_solid, 200, 200, 200, 255); SETCOL(btheme->tv3d.bone_pose, 80, 200, 255, 80); // alpha 80 is not meant editable, used for wire+action draw + + SETCOL(btheme->tv3d.pin, 115, 171, 209, 255); + btheme->tv3d.pin_opac = 40; /* space buttons */ |