From e4fb5bafc1ad408a808045813c32d50b38444d23 Mon Sep 17 00:00:00 2001 From: James Noeckel Date: Wed, 4 Aug 2021 00:10:09 -0700 Subject: [PATCH] fix exception when trying to update the vertices of a points-only object --- meshplot/Viewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshplot/Viewer.py b/meshplot/Viewer.py index d9ab8ae..a4f3564 100644 --- a/meshplot/Viewer.py +++ b/meshplot/Viewer.py @@ -377,7 +377,7 @@ def reset(self): def update_object(self, oid=0, vertices=None, colors=None, faces=None): obj = self.__objects[oid] if type(vertices) != type(None): - if obj["coloring"] == "FaceColors": + if "coloring" in obj and if obj["coloring"] == "FaceColors": f = obj["arrays"][1] verts = np.zeros((f.shape[0]*3, 3), dtype="float32") for ii in range(f.shape[0]):