Commit: 5095e4fc22cedd9289e403d841e9561bc99236ab Author: Julian Eisel Date: Mon Nov 1 16:57:09 2021 +0100 Branches: master https://developer.blender.org/rB5095e4fc22cedd9289e403d841e9561bc99236ab
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). =================================================================== M source/blender/editors/object/object_relations.c =================================================================== diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c index 556ddb78653..b51644eebf3 100644 --- a/source/blender/editors/object/object_relations.c +++ b/source/blender/editors/object/object_relations.c @@ -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; _______________________________________________ Bf-blender-cvs mailing list [email protected] List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs
