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 /source/blender/editors | |
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 'source/blender/editors')
-rw-r--r-- | source/blender/editors/transform/transform_snap.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_snap.c b/source/blender/editors/transform/transform_snap.c index a6fb7e7ed00..2d95e2ecdc6 100644 --- a/source/blender/editors/transform/transform_snap.c +++ b/source/blender/editors/transform/transform_snap.c @@ -408,9 +408,15 @@ static void initSnappingMode(TransInfo *t) t->tsnap.mode = ts->snap_node_mode; } + else if (t->spacetype == SPACE_IMAGE) { + /* force project off when not supported */ + t->tsnap.project = 0; + + t->tsnap.mode = ts->snap_uv_mode; + } else { /* force project off when not supported */ - if (t->spacetype == SPACE_IMAGE || ts->snap_mode != SCE_SNAP_MODE_FACE) + if (ts->snap_mode != SCE_SNAP_MODE_FACE) t->tsnap.project = 0; t->tsnap.mode = ts->snap_mode; |