Fix #28262: uv unwrap in sync selection mode unwrapped all faces irrespective
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 17 Aug 2011 14:43:11 +0000 (14:43 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 17 Aug 2011 14:43:11 +0000 (14:43 +0000)
of selection. Changed the fix for bug #27198, live unwrap not working with
sync selection.

source/blender/editors/uvedit/uvedit_unwrap_ops.c

index ae6836446fa855edbdb92ab1bba2eb1feb511e1a..e8a7896abd51f55ae20563c7bfa455d31f6d7dc7 100644 (file)
@@ -205,11 +205,7 @@ static ParamHandle *construct_param_handle(Scene *scene, EditMesh *em, short imp
                float *uv[4];
                int nverts;
                
-               if(scene->toolsettings->uv_flag & UV_SYNC_SELECTION) {
-                       if(efa->h)
-                               continue;
-               }
-               else if((efa->h) || (sel && (efa->f & SELECT)==0))
+               if((efa->h) || (sel && (efa->f & SELECT)==0))
                        continue;
 
                tf= (MTFace *)CustomData_em_get(&em->fdata, efa->data, CD_MTFACE);
@@ -586,7 +582,7 @@ void ED_uvedit_live_unwrap_begin(Scene *scene, Object *obedit)
                return;
        }
 
-       liveHandle = construct_param_handle(scene, em, 0, fillholes, 1, 1);
+       liveHandle = construct_param_handle(scene, em, 0, fillholes, 0, 1);
 
        param_lscm_begin(liveHandle, PARAM_TRUE, abf);
        BKE_mesh_end_editmesh(obedit->data, em);