Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
asnt committed Feb 22, 2020
1 parent 3c6d157 commit 09c9341
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions vispy/visuals/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,6 @@ def __init__(self, vertices=None, faces=None, vertex_colors=None,

# Define buffers
self._vertices = VertexBuffer(np.zeros((0, 3), dtype=np.float32))
self._normals = None
self._faces = IndexBuffer()
self._normals = VertexBuffer(np.zeros((0, 3), dtype=np.float32))
self._ambient_light_color = Color((0.3, 0.3, 0.3, 1.0))
self._light_dir = (10, 5, -5)
Expand Down Expand Up @@ -364,7 +362,6 @@ def _update_data(self):
self._normals.set_data(normals, convert=True)
else:
self._normals.set_data(np.zeros((0, 3), dtype=np.float32))
self._index_buffer = None
if md.has_vertex_color():
colors = md.get_vertex_colors(indexed='faces')
colors = colors.astype(np.float32)
Expand Down

0 comments on commit 09c9341

Please sign in to comment.