Author: Carlos Lopez <[email protected]>
Date: Mon Apr 18 11:17:30 2011 +0200
Calculate properly the decision to stay on a blinepoint or a width point based
on the relative position and the step taken.
---
.../src/modules/mod_geometry/advanced_outline.cpp | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
b/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
index 3b75de9..2c7682b 100644
--- a/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
+++ b/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
@@ -388,7 +388,7 @@ Advanced_Outline::sync()
{
// If during the interpolation travel, we
passed a
// widhpoint...
- if(ipos > wnext_pos)
+ if(ipos > wnext_pos && bnext_pos >= wnext_pos)
{
// ... just stay on it and ...
ipos=wnext_pos;
@@ -411,10 +411,9 @@ Advanced_Outline::sync()
// if we haven't passed the position of
the second blinepoint
// we don't want to step back due to
the next checking with
// bnext_pos
- if(ipos <= bnext_pos)
- break;
+ break;
}
- if(ipos > bnext_pos)
+ else if(ipos > bnext_pos && bnext_pos <
wnext_pos)
{
ipos=bnext_pos;
Real q(bline_to_bezier(ipos, biter_pos,
bezier_size));
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl