Author: Carlos Lopez <[email protected]>
Date: Sat Oct 8 09:54:49 2011 +0200
Convert the returned widthpoints positions to standard because it is the
default for new advanced outline layers.
---
synfig-studio/src/gui/states/state_draw.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/synfig-studio/src/gui/states/state_draw.cpp
b/synfig-studio/src/gui/states/state_draw.cpp
index 4e4ae51..c1a91ca 100644
--- a/synfig-studio/src/gui/states/state_draw.cpp
+++ b/synfig-studio/src/gui/states/state_draw.cpp
@@ -768,6 +768,12 @@ StateDraw_Context::process_stroke(StrokeData stroke_data,
WidthData width_data,
{
wplistconv.err2max=get_width_max_error();
wplistconv(wplist, *stroke_data,*width_data);
+ // returned widths are homogeneous position
+ // let's convert it to standard position
+ // as it is the default for new adv. outlines layers
+ std::list<synfig::WidthPoint>::iterator iter;
+ for(iter=wplist.begin(); iter!=wplist.end(); iter++)
+ iter->set_position(hom_to_std(bline,
iter->get_position(), false, false));
}
// print out resutls
synfig::info("-----------widths");
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl