[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [15614] branches/harmonic-skeleton/source/ blender/src/autoarmature.c: Solve a crasher bug in the brute force solver
Martin Poirier
theeth at yahoo.com
Thu Jul 17 21:20:18 CEST 2008
Revision: 15614
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15614
Author: theeth
Date: 2008-07-17 21:19:43 +0200 (Thu, 17 Jul 2008)
Log Message:
-----------
Solve a crasher bug in the brute force solver
Modified Paths:
--------------
branches/harmonic-skeleton/source/blender/src/autoarmature.c
Modified: branches/harmonic-skeleton/source/blender/src/autoarmature.c
===================================================================
--- branches/harmonic-skeleton/source/blender/src/autoarmature.c 2008-07-17 17:33:45 UTC (rev 15613)
+++ branches/harmonic-skeleton/source/blender/src/autoarmature.c 2008-07-17 19:19:43 UTC (rev 15614)
@@ -906,27 +906,29 @@
i = nb_joints - 1;
- /* increment positions, starting from the last one
- * until a valid increment is found
- * */
- for (i = must_move; i >= 0; i--)
- {
- int remaining_joints = nb_joints - (i + 1);
-
- positions[i] += 1;
- need_calc = i;
-
- if (positions[i] + remaining_joints < earc->bcount)
- {
- break;
- }
- }
-
if (first_pass)
{
need_calc = 0;
first_pass = 0;
}
+ else
+ {
+ /* increment positions, starting from the last one
+ * until a valid increment is found
+ * */
+ for (i = must_move; i >= 0; i--)
+ {
+ int remaining_joints = nb_joints - (i + 1);
+
+ positions[i] += 1;
+ need_calc = i;
+
+ if (positions[i] + remaining_joints <= earc->bcount)
+ {
+ break;
+ }
+ }
+ }
if (i == -1)
{
More information about the Bf-blender-cvs
mailing list