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:
authorMaxime Curioni <maxime.curioni@gmail.com>2008-12-11 01:06:27 +0300
committerMaxime Curioni <maxime.curioni@gmail.com>2008-12-11 01:06:27 +0300
commit2f460b448b29f17e9c1f6aca15eaf1387a3bfd67 (patch)
treec5103eb2e0f911b636c9583b43effca2bb2df8d7 /source/blender/freestyle/intern/stroke/Canvas.cpp
parentd15321082e12385161afe8c7f364ec535dd5ce95 (diff)
improved Freestyle IO formatting
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) {