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/Stroke.cpp')
-rw-r--r--source/blender/freestyle/intern/stroke/Stroke.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/stroke/Stroke.cpp b/source/blender/freestyle/intern/stroke/Stroke.cpp
index 79443742573..159e4a39849 100644
--- a/source/blender/freestyle/intern/stroke/Stroke.cpp
+++ b/source/blender/freestyle/intern/stroke/Stroke.cpp
@@ -644,6 +644,15 @@ void Stroke::Resample(float iSampling)
}
}
+void Stroke::RemoveAllVertices()
+{
+ vertex_container::iterator it = _Vertices.begin(), itend = _Vertices.end();
+ for (; it != itend; ++it)
+ delete (*it);
+ _Vertices.clear();
+ UpdateLength();
+}
+
void Stroke::RemoveVertex(StrokeVertex *iVertex)
{
vertex_container::iterator it = _Vertices.begin(), itend = _Vertices.end();