From 4e39a854b4589cddff484649d95cce4c71d4e9f4 Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Mon, 2 Jul 2012 21:49:19 +0000 Subject: [PATCH] Fix for Stroke::Resample() in combination with the previous commit. --- source/blender/freestyle/intern/stroke/Stroke.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/blender/freestyle/intern/stroke/Stroke.cpp b/source/blender/freestyle/intern/stroke/Stroke.cpp index 3675a6c0ce2..b42e673b4be 100755 --- a/source/blender/freestyle/intern/stroke/Stroke.cpp +++ b/source/blender/freestyle/intern/stroke/Stroke.cpp @@ -518,9 +518,9 @@ void Stroke::Resample(int iNPoints) int nsegments = 0; while(((it!=itend)&&(next!=itend))) { - Vec3r a((it)->point2d()); - Vec3r b((next)->point2d()); - Vec3r vec_tmp(b - a); + Vec2r a((it)->getPoint()); + Vec2r b((next)->getPoint()); + Vec2r vec_tmp(b - a); real norm_var = vec_tmp.norm(); int numberOfPointsToAdd = (int)floor((iNPoints-strokeVerticesSize())*norm_var/_Length); float csampling = norm_var/(float)(numberOfPointsToAdd+1);