[Bf-committers] segfault in retopo-paint

Stephan stapfx at gmx.de
Mon Jan 29 10:34:03 CET 2007


quick fix for segfault in retopo-paint:

Index: source/blender/src/retopo.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/retopo.c,v
retrieving revision 1.21
diff -u -r1.21 retopo.c
--- source/blender/src/retopo.c 28 Jan 2007 21:26:39 -0000      1.21
+++ source/blender/src/retopo.c 29 Jan 2007 09:31:04 -0000
@@ -336,6 +336,7 @@
 
 void retopo_paint_toggle_cyclic(RetopoPaintLine *l)
 {
+       if (!l) return;
        if(!l->cyclic) {
                RetopoPaintPoint *pf= l->points.first;





More information about the Bf-committers mailing list