From 0d2c12db1dafc995aef33228a0e486587a91bc2e Mon Sep 17 00:00:00 2001 From: KatKatKateryna Date: Sun, 25 Aug 2024 03:16:38 +0100 Subject: [PATCH] color mesh by 2 pts --- pygeoapi/provider/speckle_utils/display_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pygeoapi/provider/speckle_utils/display_utils.py b/pygeoapi/provider/speckle_utils/display_utils.py index 034eaf8..976cb8a 100644 --- a/pygeoapi/provider/speckle_utils/display_utils.py +++ b/pygeoapi/provider/speckle_utils/display_utils.py @@ -122,7 +122,9 @@ def assign_color(obj_display, props) -> None: if isinstance(obj_display, Mesh) and isinstance(obj_display.colors, List): sameColors = True color1 = obj_display.colors[0] - for c in obj_display.colors: + for i, c in enumerate(obj_display.colors): + if i==2: + break if c != color1: sameColors = False break