diff --git a/CHANGELOG.md b/CHANGELOG.md index 856e161de..fa6eec16b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added ### Changed - +* Fixed bug [#212](https://github.com/compas-dev/compas_view2/issues/212). ### Removed diff --git a/docs/conf.py b/docs/conf.py index 4b1993bd4..f1b5c78f6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -137,6 +137,7 @@ def setup(app): "image_dark": "_static/compas_icon_white.png", # relative to parent of conf.py "text": project, }, + "announcement": "This is the achieve documentation for the COMPAS_View2 for compas<=1.17.9. The next generation of the viewer for compas>2 is available here.", } html_context = { diff --git a/src/compas_view2/objects/meshobject.py b/src/compas_view2/objects/meshobject.py index f46aaf93e..dee45f29e 100644 --- a/src/compas_view2/objects/meshobject.py +++ b/src/compas_view2/objects/meshobject.py @@ -180,9 +180,9 @@ def _frontfaces_data(self): positions.append(b) positions.append(c) if self.use_vertex_color: - colors.append(vertex_color[a]) - colors.append(vertex_color[b]) - colors.append(vertex_color[c]) + colors.append(vertex_color[vertices[0]]) + colors.append(vertex_color[vertices[1]]) + colors.append(vertex_color[vertices[2]]) else: colors.append(color) colors.append(color) @@ -254,9 +254,9 @@ def _backfaces_data(self): positions.append(b) positions.append(c) if self.use_vertex_color: - colors.append(vertex_color[a]) - colors.append(vertex_color[b]) - colors.append(vertex_color[c]) + colors.append(vertex_color[vertices[0]]) + colors.append(vertex_color[vertices[1]]) + colors.append(vertex_color[vertices[2]]) else: colors.append(color) colors.append(color)