From 9c3710df1f03ce9d792ad39b6d4a2563c73f19bc Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Tue, 21 Feb 2012 18:20:47 +0000 Subject: uv stitch static island highlight ported to bmesh system. Unfortunately since we are missing a way to tesselate uvs, the result will look good only on concave faces since we are essentially using a triangle fan to draw. When a tesselation of uv polygons is possible the tool should also change to use that instead. This will also influence the preview drawing code, coming next. --- source/blender/editors/uvedit/uvedit_intern.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/uvedit/uvedit_intern.h') diff --git a/source/blender/editors/uvedit/uvedit_intern.h b/source/blender/editors/uvedit/uvedit_intern.h index 6566a79e467..c66e2971af1 100644 --- a/source/blender/editors/uvedit/uvedit_intern.h +++ b/source/blender/editors/uvedit/uvedit_intern.h @@ -88,8 +88,10 @@ void uvedit_live_unwrap_update(struct SpaceImage *sima, struct Scene *scene, str /* object that stores display data for previewing before accepting stitching */ typedef struct StitchPreviewer { - /* here we'll store the preview triangles of the mesh */ - float *preview_tris; + /* here we'll store the preview triangle indices of the mesh */ + unsigned int *preview_tris; + /* here we store the actual uv vertices to display */ + float *preview_coords; /* preview data. These will be either the previewed vertices or edges depending on stitch mode settings */ float *preview_stitchable; float *preview_unstitchable; -- cgit v1.2.3