diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-12 10:10:29 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-12 10:10:29 +0400 |
commit | 68c8530be171d785cdf33a66a4b0e5731256fce5 (patch) | |
tree | 48fa879d0e20b4118addf40fd7294e260fc83e63 /source/blender/editors/object/object_edit.c | |
parent | 9dfd2823c492d78bca532226f978a85728f6f3cc (diff) |
change to object-smooth poll function, no need to check for active object, just check we're not in editmode.
Diffstat (limited to 'source/blender/editors/object/object_edit.c')
-rw-r--r-- | source/blender/editors/object/object_edit.c | 2 |
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) |