Fix missing disabled hint when dragging from Asset Browser in edit mode

When dragging assets into the 3D View while in any other mode than
object mode, dropping would be disabled and the cursor would indicate
that. However there was supposed to be an "Only supported in object
mode" message, that similar operators showed, but got forgotten when
this one was introduced.
This commit is contained in:
Julian Eisel 2022-07-25 11:42:10 +02:00
parent 1c05f30e4d
commit c5afef1224
1 changed files with 1 additions and 1 deletions

View File

@ -3993,7 +3993,7 @@ void OBJECT_OT_transform_to_mouse(wmOperatorType *ot)
/* api callbacks */
ot->invoke = object_add_drop_xy_generic_invoke;
ot->exec = object_transform_to_mouse_exec;
ot->poll = ED_operator_objectmode;
ot->poll = ED_operator_objectmode_poll_msg;
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;