Skip to content

Commit 43c5c01

Browse files
committed
properly init vector obj
1 parent e25cba1 commit 43c5c01

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/compas_viewer/scene/vectorobject.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ def _calculate_arrow_buffer_data(self):
6262

6363
self._arrow_colors = [self.linecolor or self.viewer.config.linecolor] * len(self._arrow_vertices)
6464

65+
def _read_points_data(self) -> None:
66+
pass
67+
6568
def _read_lines_data(self) -> ShaderDataType:
6669
positions = self._arrow_vertices
6770
colors = self._arrow_colors
@@ -74,7 +77,9 @@ def _read_frontfaces_data(self) -> ShaderDataType:
7477
elements = self.ARROW_FACE_INDICES
7578
return positions, colors, elements
7679

80+
def _read_backfaces_data(self) -> None:
81+
pass
82+
7783
def init(self):
7884
self._calculate_arrow_buffer_data()
79-
self._lines_data = self._read_lines_data() if self.show_lines else None
80-
self._frontfaces_data = self._read_frontfaces_data() if self.show_faces else None
85+
super().init()

0 commit comments

Comments
 (0)