From fd2519e0b6948903892c3cfc373c903337979407 Mon Sep 17 00:00:00 2001 From: Azeem Bande-Ali Date: Thu, 3 Mar 2022 15:28:48 -0800 Subject: 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 --- release/scripts/startup/bl_ui/properties_material.py | 1 + 1 file changed, 1 insertion(+) (limited to 'release') 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: -- cgit v1.2.3