Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2018-09-05 21:23:39 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-09-05 21:23:42 +0300
commit67682f567b7fb5882b69056bc55a793bc0ca48b0 (patch)
tree98a9a2b0030e4249f6909b6012607a563e2448be /release
parent92f70c45eae188e0ecb754d03d61e0a05b80175e (diff)
Multi-Objects: UV_OT_smart_project
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_operators/uvcalc_smart_project.py7
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: