diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-07-15 19:52:01 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-07-15 19:55:33 +0300 |
commit | f1104c2828868b8ffd6135671f2ff3926365813a (patch) | |
tree | 6931dfcba93adb23b12df96d079d179a819e49ec /source/blender/gpu/intern/gpu_codegen.c | |
parent | eb54624a9a1dcfe93eec8bc98db0c0bbcccc1732 (diff) |
Fix T78369: Sculpt Vertex Colors not rendering in EEVEE
The vertex colors node was using the M_COL attribute type but Sculpt
Vertex Colors use CD_PROP_COLOR
Now the Vertex Color node also fallbacks to legacy vertex colors if
Scultp Vertex Colors are not enabled as experimental.
Reviewed By: brecht
Maniphest Tasks: T78369
Differential Revision: https://developer.blender.org/D8185
Diffstat (limited to 'source/blender/gpu/intern/gpu_codegen.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_codegen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_codegen.c b/source/blender/gpu/intern/gpu_codegen.c index c1e7933d7ba..0a1d6f560b6 100644 --- a/source/blender/gpu/intern/gpu_codegen.c +++ b/source/blender/gpu/intern/gpu_codegen.c @@ -649,6 +649,8 @@ static const char *attr_prefix_get(CustomDataType type) return "t"; case CD_MCOL: return "c"; + case CD_PROP_COLOR: + return "c"; case CD_AUTO_FROM_NAME: return "a"; default: |