Skip to content

Commit

Permalink
Added assert.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Vin committed Apr 23, 2024
1 parent 03591a6 commit 5addb11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scenic/core/object_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1560,6 +1560,8 @@ def show3D(self, viewer, highlight=False):
a = 1
elif len(self.color) == 4:
r, g, b, a = self.color
else:
assert False

object_mesh.visual.face_colors = [255 * r, 255 * g, 255 * b, 255 * a]

Expand Down

0 comments on commit 5addb11

Please sign in to comment.