diff options
-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) |