Fix #114848: Crash when adding specular texture slot in texture paint mode

This is because the idname for specular node is changed in 1d265eed5d.
Hence `nodeFindSocket` was returning invalid socket.

Pull Request: https://projects.blender.org/blender/blender/pulls/114884
This commit is contained in:
Pratik Borhade
2023-11-16 09:55:53 +01:00
committed by Pratik Borhade
parent fa0d3d2b58
commit 4ee531cf26

View File

@@ -6512,7 +6512,7 @@ enum {
static const EnumPropertyItem layer_type_items[] = {
{LAYER_BASE_COLOR, "BASE_COLOR", 0, "Base Color", ""},
{LAYER_SPECULAR, "SPECULAR", 0, "Specular", ""},
{LAYER_SPECULAR, "SPECULAR", 0, "Specular IOR Level", ""},
{LAYER_ROUGHNESS, "ROUGHNESS", 0, "Roughness", ""},
{LAYER_METALLIC, "METALLIC", 0, "Metallic", ""},
{LAYER_NORMAL, "NORMAL", 0, "Normal", ""},