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:
m---------release/scripts/addons0
m---------release/scripts/addons_contrib0
-rw-r--r--release/scripts/startup/bl_ui/space_node.py6
m---------source/tools0
4 files changed, 4 insertions, 2 deletions
diff --git a/release/scripts/addons b/release/scripts/addons
-Subproject 6c3a46dc113de870a03191e4c0685238b0823ac
+Subproject 5f7fba0565a7c9ae93eae31a08fc9bbbd16d333
diff --git a/release/scripts/addons_contrib b/release/scripts/addons_contrib
-Subproject 15b25a42783d1e516b5298d70b582fae2559ae1
+Subproject fecc0db5600405a0c14c70120ae279222861ef8
diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py
index c106c197ecf..4dff94019ab 100644
--- a/release/scripts/startup/bl_ui/space_node.py
+++ b/release/scripts/startup/bl_ui/space_node.py
@@ -63,10 +63,12 @@ class NODE_HT_header(Header):
layout.separator_spacer()
row = layout.row()
+ types_that_support_material = {'MESH', 'CURVE', 'SURFACE', 'FONT', 'META', 'GPENCIL'}
# disable material slot buttons when pinned, cannot find correct slot within id_from (#36589)
- row.enabled = not snode.pin
+ # disable also when the selected object does not support materials
+ row.enabled = not snode.pin and ob.type in types_that_support_material
# Show material.new when no active ID/slot exists
- if not id_from and ob.type in {'MESH', 'CURVE', 'SURFACE', 'FONT', 'METABALL'}:
+ if not id_from and ob.type in types_that_support_material:
row.template_ID(ob, "active_material", new="material.new")
# Material ID, but not for Lights
if id_from and ob.type != 'LIGHT':
diff --git a/source/tools b/source/tools
-Subproject 870f46b6e3abe03c0b9907d08f79af47f4b58ee
+Subproject 11656ebaf7f912cdb1b5eb39c5d0a3b5d492c1a