* Tweaked the logic of the Fkey button cycling to make it a bit smarter
This commit is contained in:
@@ -3334,12 +3334,9 @@ void extern_set_butspace(int fkey)
|
|||||||
else if (sbuts->tab[CONTEXT_SHADING]==TAB_SHADING_WORLD)
|
else if (sbuts->tab[CONTEXT_SHADING]==TAB_SHADING_WORLD)
|
||||||
sbuts->tab[CONTEXT_SHADING]=TAB_SHADING_LAMP;
|
sbuts->tab[CONTEXT_SHADING]=TAB_SHADING_LAMP;
|
||||||
}
|
}
|
||||||
else if (sbuts->oldkeypress == F6KEY) {
|
/* if we're coming in from texture buttons,
|
||||||
sbuts->tab[CONTEXT_SHADING]=TAB_SHADING_MAT;
|
or from outside the shading context, just go to the 'default' */
|
||||||
}
|
else if ((OBACT && sbuts->mainb!= CONTEXT_SHADING) || (sbuts->oldkeypress == F6KEY)) {
|
||||||
|
|
||||||
/* if we're coming in from outside the shading context, just go to the 'default' */
|
|
||||||
else if(OBACT && sbuts->mainb!= CONTEXT_SHADING) {
|
|
||||||
sbuts->mainb= CONTEXT_SHADING;
|
sbuts->mainb= CONTEXT_SHADING;
|
||||||
|
|
||||||
if(OBACT->type==OB_CAMERA)
|
if(OBACT->type==OB_CAMERA)
|
||||||
|
|||||||
Reference in New Issue
Block a user