forked from bartvdbraak/blender
== Transform orientation bugfix ==
Fallback to global if the selected orientation doesn't exists. This only happens when switching between scenes or screens(orientations are per view3d)
This commit is contained in:
parent
9fdb4965a3
commit
c56f484da8
@ -5639,6 +5639,10 @@ void view3d_buttons(void)
|
|||||||
xco+= XIC;
|
xco+= XIC;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (G.vd->twmode > (BIF_countTransformOrientation() - 1) + V3D_MANIP_CUSTOM) {
|
||||||
|
G.vd->twmode = 0;
|
||||||
|
}
|
||||||
|
|
||||||
str_menu = BIF_menustringTransformOrientation("Orientation");
|
str_menu = BIF_menustringTransformOrientation("Orientation");
|
||||||
uiDefButS(block, MENU, B_MAN_MODE, str_menu,xco,0,70,YIC, &G.vd->twmode, 0, 0, 0, 0, "Transform Orientation (ALT+Space)");
|
uiDefButS(block, MENU, B_MAN_MODE, str_menu,xco,0,70,YIC, &G.vd->twmode, 0, 0, 0, 0, "Transform Orientation (ALT+Space)");
|
||||||
MEM_freeN(str_menu);
|
MEM_freeN(str_menu);
|
||||||
|
Loading…
Reference in New Issue
Block a user