Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzeem Bande-Ali <azeemba>2022-03-04 02:28:48 +0300
committerHarley Acheson <harley.acheson@gmail.com>2022-03-04 02:28:48 +0300
commitfd2519e0b6948903892c3cfc373c903337979407 (patch)
tree4150c341b86662fc66c9dd6edf44cd98dc155225 /release/scripts/startup/bl_ui
parent471f27d66bd71e80db82c41db2a6fd58f854b46a (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.py1
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: