- fixed: ring finder's solutions' scale values would drop to 0.0 if it would not choose to upscale radii

Mon, 07 Jul 2014 02:13:31 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Mon, 07 Jul 2014 02:13:31 +0300
changeset 832
5c751af82f35
parent 831
3cd913bf0c48
child 833
ad681d97d341

- fixed: ring finder's solutions' scale values would drop to 0.0 if it would not choose to upscale radii

src/misc/ringFinder.cc file | annotate | diff | comparison | revisions
--- a/src/misc/ringFinder.cc	Sat Jul 05 02:20:53 2014 +0300
+++ b/src/misc/ringFinder.cc	Mon Jul 07 02:13:31 2014 +0300
@@ -141,6 +141,10 @@
 			r1 = r1f;
 		}
 	}
+	else
+	{
+		scale = 1.0;
+	}
 
 	// Recurse in and try find solutions.
 	findRingsRecursor (r0, r1, sol);
@@ -210,4 +214,4 @@
 {
 	for (Component& cmp : m_components)
 		cmp.scale *= scale;
-}
\ No newline at end of file
+}

mercurial