update point toggle
@@ -46,7 +46,7 @@ with napari.gui_qt():
selected_points = list(points_layer.selected_data)
if len(selected_points) > 0:
good_point = points_layer.properties['good_point']
- good_point[selected_points] = ~good_point[selected_points]
+ good_point[list(selected_points)] = ~good_point[list(selected_points)]
points_layer.properties['good_point'] = good_point
# we need to manually refresh since we did not use the Points.properties setter
