diff options
author | Martin Buerbaum <martin.buerbaum@gmx.at> | 2010-03-24 01:33:04 +0300 |
---|---|---|
committer | Martin Buerbaum <martin.buerbaum@gmx.at> | 2010-03-24 01:33:04 +0300 |
commit | c4d466723fb976bac6dee7c3eeef208d86d9f53a (patch) | |
tree | 1dc0aba377478ca81c00a428655d522c078ff369 | |
parent | e554677ac47f5632accdeb2888ca5c0c3c6262ee (diff) |
* Minor bugfix: Select existing object again when "edit"-ing.
-rw-r--r-- | add_mesh_3d_function_surface.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/add_mesh_3d_function_surface.py b/add_mesh_3d_function_surface.py index 9acf85db..8828d366 100644 --- a/add_mesh_3d_function_surface.py +++ b/add_mesh_3d_function_surface.py @@ -178,7 +178,6 @@ def createObject(context, verts, faces, name, edit): # Update mesh geometry after adding stuff. mesh.update() - # Create a new object. if edit: # Recreate geometry of existing object obj_act = context.active_object @@ -191,6 +190,8 @@ def createObject(context, verts, faces, name, edit): ob_new.data = mesh + ob_new.selected = True + else: # Create new object ob_new = bpy.data.objects.new(name, mesh) |