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 /ui_layer_manager.py | |
parent | bdc109a5309b26c718a3ae0ca6f2393c731fde0d (diff) |
addons: view_layer.objects.active syntax update
Diffstat (limited to 'ui_layer_manager.py')
-rw-r--r-- | ui_layer_manager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui_layer_manager.py b/ui_layer_manager.py index 98bcc1c7..c5768ce0 100644 --- a/ui_layer_manager.py +++ b/ui_layer_manager.py @@ -357,7 +357,7 @@ class SCENE_OT_namedlayer_select_objects_by_layer(Operator): objects.append(obj) not_all_selected -= 1 if self.active: - context.scene.objects.active = obj + context.view_layer.objects.active = obj if obj.select_get(): not_all_selected += 1 if not not_all_selected: |