diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-07-24 12:18:45 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-07-24 12:27:05 +0300 |
commit | 31c49493d14a68d4f7bf35162c6b16765d1433a0 (patch) | |
tree | d80cbd63cff1495a359d20c1ab8cec6d4deb8ae4 /release/scripts/startup/bl_operators/uvcalc_lightmap.py | |
parent | 9284c051d62833960ff836f2f48bf5a3b18b369c (diff) |
Fix incorrect active object setting in scripts.
Diffstat (limited to 'release/scripts/startup/bl_operators/uvcalc_lightmap.py')
-rw-r--r-- | release/scripts/startup/bl_operators/uvcalc_lightmap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/uvcalc_lightmap.py b/release/scripts/startup/bl_operators/uvcalc_lightmap.py index 95a3d18304b..b866fb1ce40 100644 --- a/release/scripts/startup/bl_operators/uvcalc_lightmap.py +++ b/release/scripts/startup/bl_operators/uvcalc_lightmap.py @@ -579,7 +579,7 @@ def unwrap(operator, context, **kwargs): # define list of meshes meshes = [] if PREF_ACT_ONLY: - obj = context.scene.objects.active + obj = context.view_layer.objects.active if obj and obj.type == 'MESH': meshes = [obj.data] else: |