Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2009-03-08 15:02:23 +0300
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2009-03-08 15:02:23 +0300
commit838234e5eab3911a2aefea67da6c28b436f708ec (patch)
treebc42b656ce90cb523e723db1a896d7ccfaa96849 /source/blender/freestyle/intern/stroke/Canvas.cpp
parentcd202bc3b64337d2d8230234836565b91caf0e56 (diff)
Fixed an immediate crash due to execution failure of a style module.
Diffstat (limited to 'source/blender/freestyle/intern/stroke/Canvas.cpp')
-rwxr-xr-xsource/blender/freestyle/intern/stroke/Canvas.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/stroke/Canvas.cpp b/source/blender/freestyle/intern/stroke/Canvas.cpp
index 01f5b9b6fb1..10a704c304a 100755
--- a/source/blender/freestyle/intern/stroke/Canvas.cpp
+++ b/source/blender/freestyle/intern/stroke/Canvas.cpp
@@ -113,6 +113,8 @@ void Canvas::Draw()
delete _Layers[i];
_Layers[i] = _StyleModules[i]->execute();
+ if (!_Layers[i])
+ continue;
stroke_count += _Layers[i]->strokes_size();