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:
authorPhil Gosch <phil@saphirestudio.at>2016-10-11 17:48:56 +0300
committerPhil Gosch <phil@saphirestudio.at>2016-10-11 17:48:56 +0300
commitc58a276a4f3a1b229acbd82c92836dc4f996d5f2 (patch)
tree6dcc8514a030e679991b88599279d637081d3fa8 /source/blender/editors/uvedit
parent55e60b3a76e93a58a549f97d4eff5349462127a1 (diff)
Small fix for binary depth search
Diffstat (limited to 'source/blender/editors/uvedit')
-rw-r--r--source/blender/editors/uvedit/uvedit_parametrizer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/uvedit/uvedit_parametrizer.c b/source/blender/editors/uvedit/uvedit_parametrizer.c
index 75c33870cd9..17f84f51e21 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);
}