Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Buerbaum <martin.buerbaum@gmx.at>2010-03-24 01:33:04 +0300
committerMartin Buerbaum <martin.buerbaum@gmx.at>2010-03-24 01:33:04 +0300
commitc4d466723fb976bac6dee7c3eeef208d86d9f53a (patch)
tree1dc0aba377478ca81c00a428655d522c078ff369 /add_mesh_3d_function_surface.py
parente554677ac47f5632accdeb2888ca5c0c3c6262ee (diff)
* Minor bugfix: Select existing object again when "edit"-ing.
Diffstat (limited to 'add_mesh_3d_function_surface.py')
-rw-r--r--add_mesh_3d_function_surface.py3
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)