diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2009-03-08 15:02:23 +0300 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2009-03-08 15:02:23 +0300 |
commit | 838234e5eab3911a2aefea67da6c28b436f708ec (patch) | |
tree | bc42b656ce90cb523e723db1a896d7ccfaa96849 /source | |
parent | cd202bc3b64337d2d8230234836565b91caf0e56 (diff) |
Fixed an immediate crash due to execution failure of a style module.
Diffstat (limited to 'source')
-rwxr-xr-x | source/blender/freestyle/intern/stroke/Canvas.cpp | 2 |
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(); |