diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2006-06-11 00:35:54 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2006-06-11 00:35:54 +0400 |
commit | 862ac0449414365caf15ddc68baeced6ad881edf (patch) | |
tree | e577334f7e57a884729203e7cb04918c2b39c9c7 /source | |
parent | 56e2aa700117a246cb8bd4130e8b4ca65a3d0089 (diff) |
Remove some more unwrapper debugging code.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/parametrizer.c | 7 | ||||
-rw-r--r-- | source/blender/src/parametrizer_intern.h | 8 | ||||
-rw-r--r-- | source/blender/src/unwrapper.c | 22 |
3 files changed, 4 insertions, 33 deletions
diff --git a/source/blender/src/parametrizer.c b/source/blender/src/parametrizer.c index 68cb287b4c0..de854a3c43e 100644 --- a/source/blender/src/parametrizer.c +++ b/source/blender/src/parametrizer.c @@ -2522,13 +2522,6 @@ static PBool p_chart_abf_solve(PChart *chart) for (i = 0; i < ABF_MAX_ITER; i++) { float norm = p_abf_compute_gradient(&sys, chart); -#if 0 - if (norm > lastnorm) - printf("convergence error: %f => %f\n", lastnorm, norm); - else - printf("norm: %f\n", norm); -#endif - lastnorm = norm; if (norm < limit) diff --git a/source/blender/src/parametrizer_intern.h b/source/blender/src/parametrizer_intern.h index f5eeed656b8..6114ecc8696 100644 --- a/source/blender/src/parametrizer_intern.h +++ b/source/blender/src/parametrizer_intern.h @@ -12,15 +12,15 @@ #else #define param_assert(condition) \ if (!(condition)) \ - { printf("Assertion %s:%d\n", __FILE__, __LINE__); abort(); } + { /*printf("Assertion %s:%d\n", __FILE__, __LINE__); abort();*/ } #define param_warning(message) \ - { printf("Warning %s:%d: %s\n", __FILE__, __LINE__, message); } + { /*printf("Warning %s:%d: %s\n", __FILE__, __LINE__, message);*/ } #define param_test_equals_ptr(str, a, b) \ if (a != b) \ - { printf("Equals %s => %p != %p\n", str, a, b); }; + { /*printf("Equals %s => %p != %p\n", str, a, b);*/ }; #define param_test_equals_int(str, a, b) \ if (a != b) \ - { printf("Equals %s => %d != %d\n", str, a, b); }; + { /*printf("Equals %s => %d != %d\n", str, a, b);*/ }; #endif typedef enum PBool { diff --git a/source/blender/src/unwrapper.c b/source/blender/src/unwrapper.c index fdf68b61a5a..851486de323 100644 --- a/source/blender/src/unwrapper.c +++ b/source/blender/src/unwrapper.c @@ -398,28 +398,6 @@ void minimize_stretch_tface_uv(void) allqueue(REDRAWIMAGE, 0); } -void smooth_area_tface_uv(void) -{ - Mesh *me; - ParamHandle *handle; - short fillholes = G.scene->toolsettings->uvcalc_flag & 1; - - me = get_mesh(OBACT); - if(me==0 || me->tface==0) return; - - handle = construct_param_handle(me, 1, fillholes, 1); - param_smooth_area(handle); - param_flush(handle); - param_delete(handle); - - BIF_undo_push("UV smooth area"); - - object_uvs_changed(OBACT); - - allqueue(REDRAWVIEW3D, 0); - allqueue(REDRAWIMAGE, 0); -} - /* LSCM live mode */ static ParamHandle *liveHandle = NULL; |