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
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-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();