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:
authorCampbell Barton <ideasman42@gmail.com>2007-09-22 10:58:40 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-09-22 10:58:40 +0400
commit0ed3e0bb4f346410d3e021420159d91a26c67052 (patch)
tree878eb259205083bed1b91dd0c49e540df24b0445 /source/blender/src/space.c
parent2244d19bc2ad65e9dca261a41f95501886a429fd (diff)
made sticky UV editing options more accessible by adding them to a popup in the header.
Changed how the sticky setting is stored in DNA - (as a char rather then 2 flags). replaced the UV/FACE icon with another needed for the sticky menu. removed 2 unused icons. commented the UV transform panel since it only had 2 buttons in it. depgraph update calls needed to be added to Ctrl+V/E/F menu's because some commands were crashing.
Diffstat (limited to 'source/blender/src/space.c')
-rw-r--r--source/blender/src/space.c38
1 files changed, 22 insertions, 16 deletions
diff --git a/source/blender/src/space.c b/source/blender/src/space.c
index d2595ad5f4e..71cb6f5f4fe 100644
--- a/source/blender/src/space.c
+++ b/source/blender/src/space.c
@@ -4820,21 +4820,28 @@ static void winqreadimagespace(ScrArea *sa, void *spacedata, BWinEvent *evt)
if (G.sima->flag & SI_SYNC_UVSEL) {
/* operate on the editmesh */
if (G.qual==0) {
- if (G.scene->selectmode != SCE_SELECT_FACE)
- toggle_uv_select('f');
+ if (G.scene->selectmode != SCE_SELECT_FACE) {
+ G.sima->flag ^= SI_SELACTFACE;
+ scrarea_queue_winredraw(curarea);
+ }
} else {
error("Sync selection to Edit Mesh disables UV select options");
}
} else {
/* normal operaton */
- if(G.qual==LR_CTRLKEY)
- toggle_uv_select('s');
- else if(G.qual==LR_SHIFTKEY)
- toggle_uv_select('l');
- else if(G.qual==LR_ALTKEY)
- toggle_uv_select('o');
- else
- toggle_uv_select('f');
+ if(G.qual==LR_CTRLKEY) {
+ G.sima->sticky = 2;
+ scrarea_do_headdraw(curarea);
+ } else if(G.qual==LR_SHIFTKEY) {
+ G.sima->sticky = 1;
+ scrarea_do_headdraw(curarea);
+ } else if(G.qual==LR_ALTKEY) {
+ G.sima->sticky = 0;
+ scrarea_do_headdraw(curarea);
+ } else {
+ G.sima->flag ^= SI_SELACTFACE;
+ scrarea_queue_winredraw(curarea);
+ }
}
break;
case EKEY :
@@ -5000,13 +5007,13 @@ static void winqreadimagespace(ScrArea *sa, void *spacedata, BWinEvent *evt)
case NKEY:
if(G.qual==LR_ALTKEY) {
new_image_sima();
- }
- else if(G.qual==0) {
- if (EM_texFaceCheck()) {
+ } else if(G.qual==0) {
+ /*if (EM_texFaceCheck()) {
toggle_blockhandler(sa, IMAGE_HANDLER_TRANSFORM_PROPERTIES, UI_PNL_TO_MOUSE);
- } else {
+ } else {
toggle_blockhandler(sa, IMAGE_HANDLER_PROPERTIES, UI_PNL_TO_MOUSE);
- }
+ }*/
+ toggle_blockhandler(sa, IMAGE_HANDLER_PROPERTIES, UI_PNL_TO_MOUSE);
scrarea_queue_winredraw(sa);
}
break;
@@ -5058,7 +5065,6 @@ static void init_imagespace(ScrArea *sa)
sima->spacetype= SPACE_IMAGE;
sima->zoom= 1;
sima->blockscale= 0.7;
- sima->flag = SI_LOCALSTICKY;
sima->iuser.ok= 1;
sima->iuser.fie_ima= 2;