[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [18435] branches/etch-a-ton/source/blender /src/editarmature_sketch.c: missing test for start of line caused crashes.

Martin Poirier theeth at yahoo.com
Fri Jan 9 21:35:44 CET 2009


Revision: 18435
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=18435
Author:   theeth
Date:     2009-01-09 21:35:37 +0100 (Fri, 09 Jan 2009)

Log Message:
-----------
missing test for start of line caused crashes.

Modified Paths:
--------------
    branches/etch-a-ton/source/blender/src/editarmature_sketch.c

Modified: branches/etch-a-ton/source/blender/src/editarmature_sketch.c
===================================================================
--- branches/etch-a-ton/source/blender/src/editarmature_sketch.c	2009-01-09 19:25:10 UTC (rev 18434)
+++ branches/etch-a-ton/source/blender/src/editarmature_sketch.c	2009-01-09 20:35:37 UTC (rev 18435)
@@ -1456,6 +1456,11 @@
 	*start = sketch->adj.start;
 	*end = sketch->adj.end;
 	
+	if (*start == -1)
+	{
+		*start = 0;
+	}
+	
 	if (*end == -1)
 	{
 		*end = sketch->adj.target->nb_points - 1;





More information about the Bf-blender-cvs mailing list