[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [48510] branches/soc-2008-mxcurioni/source /blender/freestyle/intern/stroke/Stroke.cpp: Fix for Stroke::Resample() in combination with the previous commit.

Tamito Kajiyama rd6t-kjym at asahi-net.or.jp
Mon Jul 2 23:49:20 CEST 2012


Revision: 48510
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48510
Author:   kjym3
Date:     2012-07-02 21:49:19 +0000 (Mon, 02 Jul 2012)
Log Message:
-----------
Fix for Stroke::Resample() in combination with the previous commit.

Modified Paths:
--------------
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/stroke/Stroke.cpp

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/stroke/Stroke.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/stroke/Stroke.cpp	2012-07-02 21:38:18 UTC (rev 48509)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/stroke/Stroke.cpp	2012-07-02 21:49:19 UTC (rev 48510)
@@ -518,9 +518,9 @@
   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);




More information about the Bf-blender-cvs mailing list