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:
Diffstat (limited to 'object_skinify.py')
-rw-r--r--object_skinify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/object_skinify.py b/object_skinify.py
index 19d93aab..d52d6937 100644
--- a/object_skinify.py
+++ b/object_skinify.py
@@ -181,7 +181,7 @@ def init_props():
# selects vertices
def select_vertices(mesh_obj, idx):
- bpy.context.scene.objects.active = mesh_obj
+ bpy.context.view_layer.objects.active = mesh_obj
mode = mesh_obj.mode
bpy.ops.object.mode_set(mode='EDIT')
bpy.ops.mesh.select_all(action='DESELECT')