From 04633f47498c0691f986b0766f10f0b1caadfa25 Mon Sep 17 00:00:00 2001 From: Juney Lee Date: Sat, 24 Sep 2022 10:04:53 -0400 Subject: [PATCH] initialize vertices and edges as empty lists --- src/compas_ui/controller.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compas_ui/controller.py b/src/compas_ui/controller.py index 1a3ffe70..d62f7083 100644 --- a/src/compas_ui/controller.py +++ b/src/compas_ui/controller.py @@ -204,6 +204,8 @@ def mesh_select_vertices(self, meshobj): vertex: guid for guid, vertex in iter(meshobj.guid_vertex.items()) } + vertices = [] + if mode == "All": vertices = list(mesh.vertices()) @@ -263,6 +265,8 @@ def mesh_select_edges(self, meshobj): {(v, u): guid for guid, (u, v) in iter(meshobj.guid_edge.items())} ) + edges = [] + if mode == "All": edges = list(mesh.edges())