diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2005-12-04 02:22:31 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2005-12-04 02:22:31 +0300 |
commit | c2cff1cbcf71634de3aca184c70cc4bd23fe35a8 (patch) | |
tree | f5b507efeffa60eb028dc0887226a28cf8182e86 /source/blender/src/transform_generics.c | |
parent | 8cb14867b0ad104ebe1f6fd086656dd12ada5758 (diff) |
More work on the new unwrapper code (orange branch):
- There is now a (temporary) dropdown box in the image window header for
switching between the old an new unwrapper code. So to test the changes
described below you need to enable the new unwrapper code.
- Pinning is now more predictable, if one uv is pinned, the others belonging
to the same vertex are pinned also.
- Live LSCM is much faster, since the LU factorization, the most expensive
part of the computation, is now stored and reused (was Jens' idea).
- Packing multiple uv charts is slightly improved, by doing a binary search
over the texture width. This fixes the case where all the charts are
packed at the bottom of the image.
- LSCM now uses an angle based formulation, and the results seem somewhat
different (maybe slightly better?), didn't find out why yet.
Diffstat (limited to 'source/blender/src/transform_generics.c')
-rwxr-xr-x | source/blender/src/transform_generics.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/src/transform_generics.c b/source/blender/src/transform_generics.c index 78aa7fe6122..3352a95ab77 100755 --- a/source/blender/src/transform_generics.c +++ b/source/blender/src/transform_generics.c @@ -300,7 +300,8 @@ void recalcData(TransInfo *t) } else if(t->spacetype==SPACE_IMAGE) { flushTransUVs(t); - if (G.sima->flag & SI_LSCM_LIVE) unwrap_lscm_live(); + if (G.sima->flag & SI_LSCM_LIVE) + unwrap_lscm_live_re_solve(); } else { for(base= FIRSTBASE; base; base= base->next) { @@ -481,6 +482,9 @@ void postTrans (TransInfo *t) MEM_freeN(t->data2d); t->data2d= NULL; } + + if (G.sima->flag & SI_LSCM_LIVE) + unwrap_lscm_live_end(); } static void apply_grid3(TransInfo *t, float *val, int max_index, float fac1, float fac2, float fac3) |