Skip to content

Commit 92d4049

Browse files
committed
setting of view coordinates cannot be permanent
1 parent 20df30e commit 92d4049

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/compas_rhino/artists/meshartist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def vertex_xyz(self):
8989
The view coordinates default to the actual mesh coordinates.
9090
"""
9191
if not self._vertex_xyz:
92-
self._vertex_xyz = {vertex: self.mesh.vertex_attributes(vertex, 'xyz') for vertex in self.mesh.vertices()}
92+
return {vertex: self.mesh.vertex_attributes(vertex, 'xyz') for vertex in self.mesh.vertices()}
9393
return self._vertex_xyz
9494

9595
@vertex_xyz.setter

src/compas_rhino/artists/networkartist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def node_xyz(self):
6363
The view coordinates default to the actual node coordinates.
6464
"""
6565
if not self._node_xyz:
66-
self._node_xyz = {node: self.network.node_attributes(node, 'xyz') for node in self.network.nodes()}
66+
return {node: self.network.node_attributes(node, 'xyz') for node in self.network.nodes()}
6767
return self._node_xyz
6868

6969
@node_xyz.setter

0 commit comments

Comments
 (0)