change to object-smooth poll function, no need to check for active object, just check we're not in editmode.

This commit is contained in:
Campbell Barton
2013-08-12 06:10:29 +00:00
parent 9dfd2823c4
commit 68c8530be1

View File

@@ -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)