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
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/freestyle/intern/stroke/Canvas.cpp')
-rwxr-xr-xsource/blender/freestyle/intern/stroke/Canvas.cpp6
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) {