From af0ccca0f343f4ab926979d3e0874b4935ed130d Mon Sep 17 00:00:00 2001
From: Luca Pinello <lucapinello@gmail.com>
Date: Sat, 2 Nov 2019 18:03:47 -0400
Subject: [PATCH] Fixed the per-element opacity on Surface plots

This works only if the global opacity is also specified and <1. To blend different surfaces, an opacity of 0.99 works great.
---
 src/lib/gl_format_color.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/gl_format_color.js b/src/lib/gl_format_color.js
index 41b95484306..65f27bf5494 100644
--- a/src/lib/gl_format_color.js
+++ b/src/lib/gl_format_color.js
@@ -91,7 +91,7 @@ function parseColorScale(cont, alpha) {
         var rgb = color.toRgb();
         return {
             index: index,
-            rgb: [rgb.r, rgb.g, rgb.b, alpha]
+            rgb: [rgb.r, rgb.g, rgb.b, rgb.a]
         };
     });
 }