From 929808b8676dfc6b4a31d92d5cb6136838e3e500 Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 3 Aug 2018 22:58:29 +0200 Subject: [PATCH] ShaderGenerator: fix regression with flat colors --- panda/src/pgraphnodes/shaderGenerator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/pgraphnodes/shaderGenerator.cxx b/panda/src/pgraphnodes/shaderGenerator.cxx index 91729f6e79..47d735c781 100644 --- a/panda/src/pgraphnodes/shaderGenerator.cxx +++ b/panda/src/pgraphnodes/shaderGenerator.cxx @@ -736,7 +736,7 @@ synthesize_shader(const RenderState *rs, const GeomVertexAnimationSpec &anim) { } bool need_color = false; - if (key._color_type == ColorAttrib::T_vertex) { + if (key._color_type != ColorAttrib::T_off) { if (key._lighting) { if ((key._material_flags & Material::F_ambient) == 0 || (key._material_flags & Material::F_diffuse) == 0 ||