[#24066] Menu_Items_Greyed

revert fix for bug #24009, this made menu items fail poll()
This commit is contained in:
2010-09-30 15:07:22 +00:00
parent b3c8efb3ef
commit 645d283db3

View File

@@ -131,9 +131,13 @@ int ED_operator_view3d_active(bContext *C)
int ED_operator_region_view3d_active(bContext *C)
{
#if 0 // correct but messes up poll() for menu items.
if(CTX_wm_region_view3d(C))
return TRUE;
#else
if(ed_spacetype_test(C, SPACE_VIEW3D))
return TRUE;
#endif
CTX_wm_operator_poll_msg_set(C, "expected a view3d region");
return FALSE;
}