Bugfix for [#21560] space bar in edit mode of bezier curves doesnt work

The wrong flag was used, OB_CURVE instead of OB_FONT.
This commit is contained in:
Thomas Dinges
2010-03-14 12:12:48 +00:00
parent 94d06bf3d4
commit bd34be86bf

View File

@@ -1236,7 +1236,7 @@ static int wm_search_menu_poll(bContext *C)
if(CTX_wm_window(C)==NULL) return 0;
if(CTX_wm_area(C) && CTX_wm_area(C)->spacetype==SPACE_CONSOLE) return 0; // XXX - so we can use the shortcut in the console
if(CTX_wm_area(C) && CTX_wm_area(C)->spacetype==SPACE_TEXT) return 0; // XXX - so we can use the spacebar in the text editor
if(CTX_data_edit_object(C) && CTX_data_edit_object(C)->type==OB_CURVE) return 0; // XXX - so we can use the spacebar for entering text
if(CTX_data_edit_object(C) && CTX_data_edit_object(C)->type==OB_FONT) return 0; // XXX - so we can use the spacebar for entering text
return 1;
}