Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
update for the review
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacZhangzhuo committed Jan 12, 2024
1 parent 07b8604 commit fb30117
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
12 changes: 6 additions & 6 deletions src/compas_view2/objects/meshobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit fb30117

Please sign in to comment.