Revision: 37721
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37721
Author: psy-fi
Date: 2011-06-22 01:04:01 +0000 (Wed, 22 Jun 2011)
Log Message:
-----------
smart stitch operator - vertex select(v) now updates selection. After
discussion with LetterRip will do refactor for operator to work on selection
instead of custom gHash container of vertices. This will be simpler to maintain
and write. Plus it will allow operator to redo since operands are stored as
selections
Modified Paths:
--------------
branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_ops.c
Modified: branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_ops.c
===================================================================
--- branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_ops.c
2011-06-22 00:39:14 UTC (rev 37720)
+++ branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_ops.c
2011-06-22 01:04:01 UTC (rev 37721)
@@ -1771,13 +1771,12 @@
find_nearest_uv_vert(scene, ima,
stitch_state->em, co, NULL, &hit);
if(hit.efa)
{
+ /* Add vertex to selection and update
the preview */
EditVert *vert = hit.efa->v1+hit.uv;
- /* This looks like recipe for
trouble...sigh! */
- vert->tmp.l = hit.vert;
-
if(!BLI_ghash_haskey(stitch_state->vertices, vert))
-
BLI_ghash_insert(stitch_state->vertices, vert, NULL);
+ MTFace *tface = hit.tf;
+ tface->flag |= TF_SEL_MASK(hit.uv);
}
- stitch_prepare_preview_data(stitch_state);
+ //stitch_prepare_preview_data(stitch_state);
}
break;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs