From 0319b7b50a4fac1f01df454de7cfb71721ccaaa1 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Mon, 14 Oct 2024 17:59:59 +0200 Subject: [PATCH] Fix #127611: Linked material can be modified by Copy/Paste Material Seems like we can use `object_materials_supported_poll` (similar to other material operators) that already checks the right things. Pull Request: https://projects.blender.org/blender/blender/pulls/128996 --- source/blender/editors/render/render_shading.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/editors/render/render_shading.cc b/source/blender/editors/render/render_shading.cc index 8844ab3ddfd..78daf91ecd5 100644 --- a/source/blender/editors/render/render_shading.cc +++ b/source/blender/editors/render/render_shading.cc @@ -2854,6 +2854,7 @@ void MATERIAL_OT_paste(wmOperatorType *ot) /* api callbacks */ ot->exec = paste_material_exec; + ot->poll = object_materials_supported_poll; /* flags */ ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_INTERNAL;