Skip to content

Commit

Permalink
PLY: flush selection on import
Browse files Browse the repository at this point in the history
  • Loading branch information
mrachinskiy committed Jul 22, 2020
1 parent 85173fa commit 39b8dbb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions io_mesh_ply/import_ply.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,12 +408,16 @@ def load_ply(filepath):
if not mesh:
return {'CANCELLED'}

for ob in bpy.context.selected_objects:
ob.select_set(False)

obj = bpy.data.objects.new(ply_name, mesh)
bpy.context.collection.objects.link(obj)
bpy.context.view_layer.objects.active = obj
obj.select_set(True)

print("\nSuccessfully imported %r in %.3f sec" % (filepath, time.time() - t))

return {'FINISHED'}


Expand Down

0 comments on commit 39b8dbb

Please sign in to comment.