Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-08-12 10:10:29 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-08-12 10:10:29 +0400
commit68c8530be171d785cdf33a66a4b0e5731256fce5 (patch)
tree48fa879d0e20b4118addf40fd7294e260fc83e63
parent9dfd2823c492d78bca532226f978a85728f6f3cc (diff)
change to object-smooth poll function, no need to check for active object, just check we're not in editmode.
-rw-r--r--source/blender/editors/object/object_edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c
index aed1d9a1a6c..7f7a0777bbf 100644
--- a/source/blender/editors/object/object_edit.c
+++ b/source/blender/editors/object/object_edit.c
@@ -1347,7 +1347,7 @@ static int shade_smooth_exec(bContext *C, wmOperator *op)
static int shade_poll(bContext *C)
{
- return (ED_operator_object_active_editable(C) && !ED_operator_editmesh(C));
+ return (CTX_data_edit_object(C) == NULL);
}
void OBJECT_OT_shade_flat(wmOperatorType *ot)