diff options
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(); |