diff options
author | Thomas Dinges <blender@dingto.org> | 2012-12-03 16:03:16 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2012-12-03 16:03:16 +0400 |
commit | 46d4d7559fa9f72a1040a30ca016a1674356cb71 (patch) | |
tree | cd6abdbfe2fc11a0f400e070b241aee6703150db /release | |
parent | 4302cde8ff88471e5e51fb9d7bf61fe6d59179e9 (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.py | 4 |
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="") |