Module: synfig/synfig
Branch: genete_width_outline
Commit: e8d7c5568a8e828db820455b304915bdf1021b2f
URL:    
http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig/synfig;a=commit;h=e8d7c5568a8e828db820455b304915bdf1021b2f

Author: Carlos Lopez <genet...@gmail.com>
Date:   Wed Jan 19 18:02:15 2011 +0100

Make Curves widget recognise the Width Point type.

---

 synfig-studio/src/gui/widgets/widget_curves.cpp |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/synfig-studio/src/gui/widgets/widget_curves.cpp 
b/synfig-studio/src/gui/widgets/widget_curves.cpp
index ece0762..6c53739 100644
--- a/synfig-studio/src/gui/widgets/widget_curves.cpp
+++ b/synfig-studio/src/gui/widgets/widget_curves.cpp
@@ -219,6 +219,14 @@ struct studio::Widget_Curves::CurveStruct : sigc::trackable
                                channels.back().name="t2.y";
                                channels.back().color=Gdk::Color("#7f7f00");
                                break;
+                       case ValueBase::TYPE_WIDTHPOINT:
+                               channels.push_back(Channel());
+                               channels.back().name="position";
+                               channels.back().color=Gdk::Color("#ff0000");
+                               channels.push_back(Channel());
+                               channels.back().name="width";
+                               channels.back().color=Gdk::Color("#00ff00");
+                               break;
                        default:
                                throw synfig::Exception::BadType("Bad type for 
curves");
                }
@@ -284,6 +292,10 @@ struct studio::Widget_Curves::CurveStruct : sigc::trackable
                                
channels[7].values[time]=value.get(BLinePoint()).get_tangent2()[0];
                                
channels[8].values[time]=value.get(BLinePoint()).get_tangent2()[1];
                                break;
+                       case ValueBase::TYPE_WIDTHPOINT:
+                               
channels[0].values[time]=value.get(WidthPoint()).get_position();
+                               
channels[1].values[time]=value.get(WidthPoint()).get_width();
+                               break;
                        default:
                                return 0;
                }


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to