diff options
author | NBurn <7nburn@gmail.com> | 2019-01-29 04:04:35 +0300 |
---|---|---|
committer | NBurn <7nburn@gmail.com> | 2019-01-29 04:04:35 +0300 |
commit | edd2de62eb13284f7e02256701fec1483973018d (patch) | |
tree | 02a6ab0c10b9131e346d2e55b36bfd14873fafa3 /add_mesh_extra_objects/add_mesh_triangles.py | |
parent | bdc109a5309b26c718a3ae0ca6f2393c731fde0d (diff) |
addons: view_layer.objects.active syntax update
Diffstat (limited to 'add_mesh_extra_objects/add_mesh_triangles.py')
-rw-r--r-- | add_mesh_extra_objects/add_mesh_triangles.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/add_mesh_extra_objects/add_mesh_triangles.py b/add_mesh_extra_objects/add_mesh_triangles.py index 17f11e9c..bdede2c5 100644 --- a/add_mesh_extra_objects/add_mesh_triangles.py +++ b/add_mesh_extra_objects/add_mesh_triangles.py @@ -283,7 +283,7 @@ class MakeTriangle(Operator): exitEditMode() bpy.ops.object.select_all(action="DESELECT") NewObj.select_set(True) - context.scene.objects.active = NewObj + context.view_layer.objects.active = NewObj if self.at_3Dcursor is True: # we'll need to be sure there is actually an object selected |