[Bf-blender-cvs] [70376154a0b] master: Fix Cycles Python error with pinned materials in properties editor

Brecht Van Lommel noreply at git.blender.org
Fri Oct 15 15:59:42 CEST 2021


Commit: 70376154a0b09dc05fcc5bd79c33fdf7c6acbd9a
Author: Brecht Van Lommel
Date:   Wed Oct 13 18:47:31 2021 +0200
Branches: master
https://developer.blender.org/rB70376154a0b09dc05fcc5bd79c33fdf7c6acbd9a

Fix Cycles Python error with pinned materials in properties editor

===================================================================

M	intern/cycles/blender/addon/ui.py

===================================================================

diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py
index 55782088444..598f6f083ac 100644
--- a/intern/cycles/blender/addon/ui.py
+++ b/intern/cycles/blender/addon/ui.py
@@ -981,8 +981,8 @@ class CYCLES_PT_context_material(CyclesButtonsPanel, Panel):
                 row.prop(slot, "link", text="", icon=icon_link, icon_only=True)
 
         elif mat:
-            split.template_ID(space, "pin_id")
-            split.separator()
+            layout.template_ID(space, "pin_id")
+            layout.separator()
 
 
 class CYCLES_OBJECT_PT_motion_blur(CyclesButtonsPanel, Panel):



More information about the Bf-blender-cvs mailing list