From 0d3fc6615ac84e7fc394e6278bff115f9041d784 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20ISVELIN?= Date: Wed, 12 Jul 2023 21:35:07 +0300 Subject: [PATCH] show_object(): fix alpha param --- cq_server/module_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cq_server/module_manager.py b/cq_server/module_manager.py index b125281..b497329 100644 --- a/cq_server/module_manager.py +++ b/cq_server/module_manager.py @@ -146,7 +146,8 @@ def get_assembly(self): else MODEL_COLOR_DEFAULT if alpha: - color = Color(color.toTuple()[:3] + [ alpha ]) + r, g, b = color.toTuple()[:3] + color = Color(r, g, b, alpha) try: assembly.add(result.shape, color=color, name=name)