Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2005-12-04 02:22:31 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2005-12-04 02:22:31 +0300
commitc2cff1cbcf71634de3aca184c70cc4bd23fe35a8 (patch)
treef5b507efeffa60eb028dc0887226a28cf8182e86 /source/blender/src/header_image.c
parent8cb14867b0ad104ebe1f6fd086656dd12ada5758 (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/header_image.c')
-rw-r--r--source/blender/src/header_image.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/src/header_image.c b/source/blender/src/header_image.c
index 9d12e417d02..35e7c8e577f 100644
--- a/source/blender/src/header_image.c
+++ b/source/blender/src/header_image.c
@@ -1103,6 +1103,7 @@ void image_buttons(void)
char naam[256];
/* This should not be a static var */
static int headerbuttons_packdummy;
+ extern short CurrentUnwrapper;
headerbuttons_packdummy = 0;
@@ -1180,6 +1181,9 @@ void image_buttons(void)
/* draw LOCK */
uiDefIconButS(block, ICONTOG, 0, ICON_UNLOCKED, xco,0,XIC,YIC, &(G.sima->lock), 0, 0, 0, 0, "Updates other affected window spaces automatically to reflect changes in real time");
+
+ xco += 2*XIC;
+ uiDefButS(block, MENU, B_NOP, "Unwrapper%t|Old LSCM%x0|New LSCM%x1",xco,0,85,YIC, &CurrentUnwrapper, 0, 0, 0, 0, "Unwrapper");
/* Always do this last */
curarea->headbutlen= xco+2*XIC;