UI: Display disabled-hint when dragging material outside object mode

Display a "disabled hint" (text explaining why something isn't possible)
when dragging a material over the 3D View, while being in edit mode or
so (anything that isn't object mode).
This commit is contained in:
Julian Eisel 2021-11-01 16:57:09 +01:00
parent bdf6665e3a
commit 5095e4fc22
1 changed files with 1 additions and 1 deletions

View File

@ -2656,7 +2656,7 @@ void OBJECT_OT_drop_named_material(wmOperatorType *ot)
/* api callbacks */
ot->invoke = drop_named_material_invoke;
ot->poll = ED_operator_objectmode;
ot->poll = ED_operator_objectmode_poll_msg;
/* flags */
ot->flag = OPTYPE_UNDO | OPTYPE_INTERNAL;