diff options
Diffstat (limited to 'source/blender/freestyle/intern/stroke/Canvas.cpp')
-rw-r--r-- | source/blender/freestyle/intern/stroke/Canvas.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/freestyle/intern/stroke/Canvas.cpp b/source/blender/freestyle/intern/stroke/Canvas.cpp index 4427192a7b0..3fd2f9252d9 100644 --- a/source/blender/freestyle/intern/stroke/Canvas.cpp +++ b/source/blender/freestyle/intern/stroke/Canvas.cpp @@ -140,7 +140,6 @@ void Canvas::postDraw() update(); } - void Canvas::Clear() { if (!_Layers.empty()) { @@ -153,8 +152,10 @@ void Canvas::Clear() if (!_StyleModules.empty()) { for (deque<StyleModule*>::iterator s = _StyleModules.begin(), send = _StyleModules.end(); s != send; ++s) { - if (*s) + if (*s) { + (*s)->close(); delete (*s); + } } _StyleModules.clear(); } @@ -234,7 +235,6 @@ void Canvas::RemoveStyleModule(unsigned index) } } - void Canvas::SwapStyleModules(unsigned i1, unsigned i2) { StyleModule *tmp; |