From 43b4e6d4ced4fbbc2d116c399d0768c485e968fe Mon Sep 17 00:00:00 2001 From: Tristan Strathearn Date: Sun, 17 Apr 2022 21:42:34 +1000 Subject: [PATCH] fix: ensure all scene objects are deselected before executing core single_vertex operator functionality --- sketching/single_vertex.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sketching/single_vertex.py b/sketching/single_vertex.py index 5324bc2..0c2fd90 100644 --- a/sketching/single_vertex.py +++ b/sketching/single_vertex.py @@ -10,8 +10,11 @@ class ND_OT_single_vertex(bpy.types.Operator): def execute(self, context): + bpy.ops.object.select_all(action='DESELECT') + add_single_vertex_object(self, context, "Sketch") align_object_to_3d_cursor(self, context) + self.start_sketch_editing(context) return {'FINISHED'}