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:
authorJoseph Eagar <joeedh@gmail.com>2022-05-12 11:25:20 +0300
committerJoseph Eagar <joeedh@gmail.com>2022-05-12 11:29:13 +0300
commit0eb2244f0ae785aec08e608458804b780ea4957b (patch)
tree97203b66ad5820bf22ee0a79b5d99acc4855741e /source/blender/gpu
parent295b6e8230de011dcce62716c76604dd93b9880c (diff)
color attributes: Fix broken vertex color node
Fall back onto the old behavior (use the render color attribute) if the vertex color node's attribute name is blank.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_node_graph.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_node_graph.c b/source/blender/gpu/intern/gpu_node_graph.c
index b3a091ffbb0..91fb0544cf6 100644
--- a/source/blender/gpu/intern/gpu_node_graph.c
+++ b/source/blender/gpu/intern/gpu_node_graph.c
@@ -333,6 +333,8 @@ static char attr_prefix_get(CustomDataType type)
switch (type) {
case CD_TANGENT:
return 't';
+ case CD_MCOL:
+ return 'c';
case CD_AUTO_FROM_NAME:
return 'a';
case CD_HAIRLENGTH: