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);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to