Page MenuHome

T90371: Asset: Drop Material Tooltip.
ClosedPublic

Authored by Jeroen Bakker (jbakker) on Aug 2 2021, 4:55 PM.

Details

Summary

This patch changes the drop named material tooltip to give feedback to
the user what is going to happen when they invoke the change.

There are 3 states:

  • "": Operator will be canceled as not all data is present (dropping on background.)
  • "Drop <named material> on <object name> (slot <slot number>, replacing <current material in slot>).
  • "Drop <named material> on <object name> (slot <slot number).

Diff Detail

Repository
rB Blender

Event Timeline

Jeroen Bakker (jbakker) requested review of this revision.Aug 2 2021, 4:55 PM
Jeroen Bakker (jbakker) created this revision.
  • Remove unused predeclaration.
  • Silenced compiler warning.
  • Fix unneeded loading of assets.

Looks good mostly! ED_view3d_give_base_under_cursor() isn't entirely cheap, but we'll have to accept that if we want good mouse hover feedback.

source/blender/editors/object/object_relations.c
2736

Can we just return NULL here?

source/blender/editors/include/ED_object.h
57

Remove unused define.

source/blender/editors/object/object_relations.c
2736

That would display the operator name but we could ask feedback from users

Jeroen Bakker (jbakker) edited the summary of this revision. (Show Details)Aug 3 2021, 8:26 AM
Jeroen Bakker (jbakker) marked an inline comment as done.Aug 3 2021, 8:48 AM
This revision is now accepted and ready to land.Aug 3 2021, 9:49 AM
Jeroen Bakker (jbakker) retitled this revision from Fix T90371: Asset: Drop Material Tooltip. to T90371: Asset: Drop Material Tooltip..Aug 4 2021, 8:37 AM
This revision was automatically updated to reflect the committed changes.