diff options
author | Joshua Leung <aligorith@gmail.com> | 2012-08-26 12:03:31 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2012-08-26 12:03:31 +0400 |
commit | aa17fc367bbd8a5a5834c07f3b225547dae11ee5 (patch) | |
tree | 4169d9b40bd9e21c15503100bcba023b19e05426 /source/blender/editors/object | |
parent | a5e77e37537e4067c89c84e1a3a66f9f61845de3 (diff) |
Bugfix [#32410] Create New Group (CTRL+G) tried to activate even when nothing is
selected
Some group operators were missing poll() callbacks
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_group.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_group.c b/source/blender/editors/object/object_group.c index 53bfddee740..cca37cf3a44 100644 --- a/source/blender/editors/object/object_group.c +++ b/source/blender/editors/object/object_group.c @@ -370,6 +370,7 @@ void OBJECT_OT_group_add(wmOperatorType *ot) /* api callbacks */ ot->exec = group_add_exec; + ot->poll = ED_operator_objectmode; /* flags */ ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; @@ -403,6 +404,7 @@ void OBJECT_OT_group_link(wmOperatorType *ot) /* api callbacks */ ot->exec = group_link_exec; ot->invoke = WM_enum_search_invoke; + ot->poll = ED_operator_objectmode; /* flags */ ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; @@ -438,6 +440,7 @@ void OBJECT_OT_group_remove(wmOperatorType *ot) /* api callbacks */ ot->exec = group_remove_exec; + ot->poll = ED_operator_objectmode; /* flags */ ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; |