[Bf-blender-cvs] [67682f567b7] blender2.8: Multi-Objects: UV_OT_smart_project

Dalai Felinto noreply at git.blender.org
Wed Sep 5 20:29:06 CEST 2018


Commit: 67682f567b7fb5882b69056bc55a793bc0ca48b0
Author: Dalai Felinto
Date:   Wed Sep 5 15:23:39 2018 -0300
Branches: blender2.8
https://developer.blender.org/rB67682f567b7fb5882b69056bc55a793bc0ca48b0

Multi-Objects: UV_OT_smart_project

===================================================================

M	release/scripts/startup/bl_operators/uvcalc_smart_project.py

===================================================================

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:



More information about the Bf-blender-cvs mailing list