diff options
author | Azeem Bande-Ali <azeemba> | 2022-03-04 02:28:48 +0300 |
---|---|---|
committer | Harley Acheson <harley.acheson@gmail.com> | 2022-03-04 02:28:48 +0300 |
commit | fd2519e0b6948903892c3cfc373c903337979407 (patch) | |
tree | 4150c341b86662fc66c9dd6edf44cd98dc155225 /release/scripts/startup/bl_ui | |
parent | 471f27d66bd71e80db82c41db2a6fd58f854b46a (diff) |
UI: Drag & Drop to Properties Materials Panel
Support drag/drop of materials to Properties Material Slots.
See D13549 for more details.
Differential Revision: https://developer.blender.org/D13549
Reviewed by Julian Eisel
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_material.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_material.py b/release/scripts/startup/bl_ui/properties_material.py index 8c70987b3cf..9532d1d4ab0 100644 --- a/release/scripts/startup/bl_ui/properties_material.py +++ b/release/scripts/startup/bl_ui/properties_material.py @@ -28,6 +28,7 @@ class MATERIAL_UL_matslots(UIList): ma = slot.material layout.context_pointer_set("id", ma) + layout.context_pointer_set("material_slot", slot) if self.layout_type in {'DEFAULT', 'COMPACT'}: if ma: |