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:
authorJanne Karhu <jhkarh@gmail.com>2011-03-18 19:35:42 +0300
committerJanne Karhu <jhkarh@gmail.com>2011-03-18 19:35:42 +0300
commitb66f7a471cc5e5d6995fb7c420325c564a213f29 (patch)
treeffcd21252c5769413ef5f9d9957b59277b0b8446
parenteeb94697d54f252cd635d0b4c49f42869c38ae6f (diff)
Fix for [#25878] UV Scale/Rotate/Grab break with non grid snapping.
* The selected uv-vertices (the ones being transformed) weren't being disregarded as snapping targets, so moving two verts that were in the same location together was impossible.
-rw-r--r--source/blender/editors/uvedit/uvedit_ops.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/uvedit/uvedit_ops.c b/source/blender/editors/uvedit/uvedit_ops.c
index b60eb6b9a72..252f9c66266 100644
--- a/source/blender/editors/uvedit/uvedit_ops.c
+++ b/source/blender/editors/uvedit/uvedit_ops.c
@@ -619,6 +619,9 @@ int ED_uvedit_nearest_uv(Scene *scene, Object *obedit, Image *ima, float co[2],
nverts= efa->v4? 4: 3;
for(i=0; i<nverts; i++) {
+ if(uvedit_uv_selected(scene, efa, tf, i))
+ continue;
+
dist= fabs(co[0]-tf->uv[i][0]) + fabs(co[1]-tf->uv[i][1]);
if(dist<=mindist) {