[Bf-blender-cvs] [32d50858c35] blender2.8: Fix T58663: UV Align Auto does nothing

Philipp Oeser noreply at git.blender.org
Thu Dec 6 13:19:52 CET 2018


Commit: 32d50858c353734124f68fd71b66f46ed2cb2ceb
Author: Philipp Oeser
Date:   Thu Dec 6 13:17:04 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB32d50858c353734124f68fd71b66f46ed2cb2ceb

Fix T58663: UV Align Auto does nothing

one case was missing in cleanup commit rB8fc6609cc008

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

M	source/blender/editors/uvedit/uvedit_ops.c

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

diff --git a/source/blender/editors/uvedit/uvedit_ops.c b/source/blender/editors/uvedit/uvedit_ops.c
index d02bd95c047..9d095fc00ff 100644
--- a/source/blender/editors/uvedit/uvedit_ops.c
+++ b/source/blender/editors/uvedit/uvedit_ops.c
@@ -1566,7 +1566,7 @@ static void uv_weld_align(bContext *C, eUVWeldAlign tool)
 				}
 			}
 		}
-		tool = (max[0] - min[0] >= max[1] - min[1]) ? 'y' : 'x';
+		tool = (max[0] - min[0] >= max[1] - min[1]) ? UV_ALIGN_Y : UV_ALIGN_X;
 	}
 
 	ED_uvedit_center_multi(scene, ima, objects, objects_len, cent, 0);



More information about the Bf-blender-cvs mailing list