[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [19223] branches/soc-2008-mxcurioni/source /blender/freestyle/intern/stroke/Canvas.cpp: Fixed an immediate crash due to execution failure of a style module.

Tamito Kajiyama rd6t-kjym at asahi-net.or.jp
Sun Mar 8 13:02:26 CET 2009


Revision: 19223
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19223
Author:   kjym3
Date:     2009-03-08 13:02:23 +0100 (Sun, 08 Mar 2009)

Log Message:
-----------
Fixed an immediate crash due to execution failure of a style module.

Modified Paths:
--------------
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/stroke/Canvas.cpp

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/stroke/Canvas.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/stroke/Canvas.cpp	2009-03-08 08:03:27 UTC (rev 19222)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/stroke/Canvas.cpp	2009-03-08 12:02:23 UTC (rev 19223)
@@ -113,6 +113,8 @@
       delete _Layers[i];
 
     _Layers[i] = _StyleModules[i]->execute();
+	if (!_Layers[i])
+		continue;
 
 	stroke_count += _Layers[i]->strokes_size();
 





More information about the Bf-blender-cvs mailing list