diff options
author | Maxime Curioni <maxime.curioni@gmail.com> | 2008-12-11 01:06:27 +0300 |
---|---|---|
committer | Maxime Curioni <maxime.curioni@gmail.com> | 2008-12-11 01:06:27 +0300 |
commit | 2f460b448b29f17e9c1f6aca15eaf1387a3bfd67 (patch) | |
tree | c5103eb2e0f911b636c9583b43effca2bb2df8d7 /source/blender/freestyle/intern/stroke/Canvas.cpp | |
parent | d15321082e12385161afe8c7f364ec535dd5ce95 (diff) |
improved Freestyle IO formatting
Diffstat (limited to 'source/blender/freestyle/intern/stroke/Canvas.cpp')
-rwxr-xr-x | source/blender/freestyle/intern/stroke/Canvas.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/stroke/Canvas.cpp b/source/blender/freestyle/intern/stroke/Canvas.cpp index 84411c20970..01f5b9b6fb1 100755 --- a/source/blender/freestyle/intern/stroke/Canvas.cpp +++ b/source/blender/freestyle/intern/stroke/Canvas.cpp @@ -114,6 +114,8 @@ void Canvas::Draw() _Layers[i] = _StyleModules[i]->execute(); + stroke_count += _Layers[i]->strokes_size(); + timestamp->increment(); } postDraw(); @@ -146,6 +148,8 @@ void Canvas::Clear() } if(_steerableViewMap) _steerableViewMap->Reset(); + + stroke_count = 0; } void Canvas::Erase() @@ -161,6 +165,8 @@ void Canvas::Erase() if(_steerableViewMap) _steerableViewMap->Reset(); update(); + +stroke_count = 0; } void Canvas::InsertStyleModule(unsigned index, StyleModule *iStyleModule) { |