Author: Carlos Lopez <[email protected]>
Date:   Thu Jul 28 09:45:36 2011 +0200

Make Curves panel draw composite Dash Items.

---

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

diff --git a/synfig-studio/src/gui/widgets/widget_curves.cpp 
b/synfig-studio/src/gui/widgets/widget_curves.cpp
index 9cbc450..610da65 100644
--- a/synfig-studio/src/gui/widgets/widget_curves.cpp
+++ b/synfig-studio/src/gui/widgets/widget_curves.cpp
@@ -228,6 +228,14 @@ struct studio::Widget_Curves::CurveStruct : sigc::trackable
                                channels.back().name="width";
                                channels.back().color=Gdk::Color("#00ff00");
                                break;
+                       case ValueBase::TYPE_DASHITEM:
+                               channels.push_back(Channel());
+                               channels.back().name="offset";
+                               channels.back().color=Gdk::Color("#ff0000");
+                               channels.push_back(Channel());
+                               channels.back().name="length";
+                               channels.back().color=Gdk::Color("#00ff00");
+                               break;
                        default:
                                throw synfig::Exception::BadType("Bad type for 
curves");
                }


------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to