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:
authorThomas Dinges <blender@dingto.org>2012-12-03 16:03:16 +0400
committerThomas Dinges <blender@dingto.org>2012-12-03 16:03:16 +0400
commit46d4d7559fa9f72a1040a30ca016a1674356cb71 (patch)
treecd6abdbfe2fc11a0f400e070b241aee6703150db /release
parent4302cde8ff88471e5e51fb9d7bf61fe6d59179e9 (diff)
Image Editor / UV:
* Bring back "Snap to Vertex", own regression introduced in r39460. Patch by Brecht (DNA, Transform) and myself (RNA, Script).
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_image.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py
index 358dc016219..1ea20d96386 100644
--- a/release/scripts/startup/bl_ui/space_image.py
+++ b/release/scripts/startup/bl_ui/space_image.py
@@ -414,7 +414,9 @@ class IMAGE_HT_header(Header):
row = layout.row(align=True)
row.prop(toolsettings, "use_snap", text="")
- row.prop(toolsettings, "snap_target", text="")
+ row.prop(toolsettings, "snap_uv_element", text="", icon_only=True)
+ if toolsettings.snap_uv_element != 'INCREMENT':
+ row.prop(toolsettings, "snap_target", text="")
mesh = context.edit_object.data
layout.prop_search(mesh.uv_textures, "active", mesh, "uv_textures", text="")