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_advanced_objects_menu/cubester.py | |
parent | bdc109a5309b26c718a3ae0ca6f2393c731fde0d (diff) |
addons: view_layer.objects.active syntax update
Diffstat (limited to 'add_advanced_objects_menu/cubester.py')
-rw-r--r-- | add_advanced_objects_menu/cubester.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/add_advanced_objects_menu/cubester.py b/add_advanced_objects_menu/cubester.py index 3d95613e..6c4f8dfd 100644 --- a/add_advanced_objects_menu/cubester.py +++ b/add_advanced_objects_menu/cubester.py @@ -198,7 +198,7 @@ def create_mesh_from_audio(self, scene, verts, faces): mesh.from_pydata(verts, [], faces) ob = bpy.data.objects.new("cubed", mesh) bpy.context.scene.objects.link(ob) - bpy.context.scene.objects.active = ob + bpy.context.view_layer.objects.active = ob ob.select_set(True) # initial vertex colors @@ -413,7 +413,7 @@ def create_mesh_from_image(self, scene, verts, faces): mesh.from_pydata(verts, [], faces) ob = bpy.data.objects.new("cubed", mesh) context.scene.objects.link(ob) - context.scene.objects.active = ob + context.view_layer.objects.active = ob ob.select_set(True) # uv unwrap |