diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-09-05 21:23:39 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-09-05 21:23:42 +0300 |
commit | 67682f567b7fb5882b69056bc55a793bc0ca48b0 (patch) | |
tree | 98a9a2b0030e4249f6909b6012607a563e2448be /release | |
parent | 92f70c45eae188e0ecb754d03d61e0a05b80175e (diff) |
Multi-Objects: UV_OT_smart_project
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_operators/uvcalc_smart_project.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_operators/uvcalc_smart_project.py b/release/scripts/startup/bl_operators/uvcalc_smart_project.py index 1f67ff4c71f..e2f25c39a6c 100644 --- a/release/scripts/startup/bl_operators/uvcalc_smart_project.py +++ b/release/scripts/startup/bl_operators/uvcalc_smart_project.py @@ -756,11 +756,10 @@ def main(context, USER_FILL_HOLES_QUALITY = 50 # Only for hole filling. USER_VIEW_INIT = 0 # Only for hole filling. + obList = [ob for ob in context.selected_editable_objects if ob and ob.type == 'MESH'] is_editmode = (context.active_object.mode == 'EDIT') - if is_editmode: - obList = [ob for ob in [context.active_object] if ob and ob.type == 'MESH'] - else: - obList = [ob for ob in context.selected_editable_objects if ob and ob.type == 'MESH'] + + if not is_editmode: USER_ONLY_SELECTED_FACES = False if not obList: |