[Bf-blender-cvs] [c58a276] soc-2016-uv_tools: Small fix for binary depth search

Phil Gosch noreply at git.blender.org
Tue Oct 11 16:49:23 CEST 2016


Commit: c58a276a4f3a1b229acbd82c92836dc4f996d5f2
Author: Phil Gosch
Date:   Tue Oct 11 16:48:56 2016 +0200
Branches: soc-2016-uv_tools
https://developer.blender.org/rBc58a276a4f3a1b229acbd82c92836dc4f996d5f2

Small fix for binary depth search

===================================================================

M	source/blender/editors/uvedit/uvedit_parametrizer.c

===================================================================

diff --git a/source/blender/editors/uvedit/uvedit_parametrizer.c b/source/blender/editors/uvedit/uvedit_parametrizer.c
index 75c3387..17f84f5 100644
--- a/source/blender/editors/uvedit/uvedit_parametrizer.c
+++ b/source/blender/editors/uvedit/uvedit_parametrizer.c
@@ -5891,7 +5891,7 @@ static float p_scale_binary_search(PHandle *phandle, PChart *chart, float val, f
 
 static float p_binary_depth_search(PHandle *phandle, PChart *chart, int depth, float margin)
 {
-	float value = 0.5f, abs_scale = 1.0f, found = 1.0f;
+	float value = 0.5f, abs_scale = chart->u.ipack.last_scale/*1.0f*/, found = 1.0f;
 
 	return p_scale_binary_search(phandle, chart, value, value, depth, abs_scale, found, margin);
 }




More information about the Bf-blender-cvs mailing list