Skip to content
Snippets Groups Projects
Commit c4d46672 authored by Martin Buerbaum's avatar Martin Buerbaum
Browse files

* Minor bugfix: Select existing object again when "edit"-ing.

parent e554677a
No related branches found
No related tags found
No related merge requests found
...@@ -178,7 +178,6 @@ def createObject(context, verts, faces, name, edit): ...@@ -178,7 +178,6 @@ def createObject(context, verts, faces, name, edit):
# Update mesh geometry after adding stuff. # Update mesh geometry after adding stuff.
mesh.update() mesh.update()
# Create a new object.
if edit: if edit:
# Recreate geometry of existing object # Recreate geometry of existing object
obj_act = context.active_object obj_act = context.active_object
...@@ -191,6 +190,8 @@ def createObject(context, verts, faces, name, edit): ...@@ -191,6 +190,8 @@ def createObject(context, verts, faces, name, edit):
ob_new.data = mesh ob_new.data = mesh
ob_new.selected = True
else: else:
# Create new object # Create new object
ob_new = bpy.data.objects.new(name, mesh) ob_new = bpy.data.objects.new(name, mesh)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment