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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user