== 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:
Martin Poirier 2008-05-14 09:30:27 +00:00
parent 9fdb4965a3
commit c56f484da8

@ -5639,6 +5639,10 @@ void view3d_buttons(void)
xco+= XIC;
}
if (G.vd->twmode > (BIF_countTransformOrientation() - 1) + V3D_MANIP_CUSTOM) {
G.vd->twmode = 0;
}
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)");
MEM_freeN(str_menu);