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:
authorNBurn <7nburn@gmail.com>2019-01-29 04:04:35 +0300
committerNBurn <7nburn@gmail.com>2019-01-29 04:04:35 +0300
commitedd2de62eb13284f7e02256701fec1483973018d (patch)
tree02a6ab0c10b9131e346d2e55b36bfd14873fafa3 /object_skinify.py
parentbdc109a5309b26c718a3ae0ca6f2393c731fde0d (diff)
addons: view_layer.objects.active syntax update
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')