diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-11-08 01:06:57 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-11-08 01:06:57 +0300 |
commit | 70df942d31aaaa3d25b7c5543f28529cc51170cc (patch) | |
tree | 74b2052407199ef2eba2632a0b9483ba20b59a13 /object_print3d_utils | |
parent | 5725f500a11c23707426d3b79376e74d8d802920 (diff) |
Update for changes in Blender's API
Diffstat (limited to 'object_print3d_utils')
-rw-r--r-- | object_print3d_utils/mesh_helpers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/object_print3d_utils/mesh_helpers.py b/object_print3d_utils/mesh_helpers.py index 44cce337..6a18e3e2 100644 --- a/object_print3d_utils/mesh_helpers.py +++ b/object_print3d_utils/mesh_helpers.py @@ -242,14 +242,14 @@ def object_merge(context, objects): # deselect all for obj in scene.objects: - obj.select_set('DESELECT') + obj.select_set(False) # add empty object mesh_base = bpy.data.meshes.new(name="~tmp~") obj_base = bpy.data.objects.new(name="~tmp~", object_data=mesh_base) scene_collection.objects.link(obj_base) layer.objects.active = obj_base - obj_base.select_set('SELECT') + obj_base.select_set(True) # loop over all meshes for obj in objects: |