diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-09-30 19:07:22 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-09-30 19:07:22 +0400 |
commit | 645d283db3eac3cc7788b2905ddbc3a123d225cc (patch) | |
tree | c5dada823342f30b7ec697343d64b733c2ecf1da | |
parent | b3c8efb3ef57d176222a4af63e91a729d902af22 (diff) |
[#24066] Menu_Items_Greyed
revert fix for bug #24009, this made menu items fail poll()
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index 7336d762225..7638d576d9d 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -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; } |