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

Author: Carlos Lopez <[email protected]>
Date:   Wed Jan 26 18:48:14 2011 +0100

If a wplist is connected then try to connect the bline to it.

---

 .../src/modules/mod_geometry/advanced_outline.cpp  |   24 ++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/synfig-core/src/modules/mod_geometry/advanced_outline.cpp 
b/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
index 335a9e3..4530c72 100644
--- a/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
+++ b/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
@@ -412,8 +412,31 @@ Advanced_Outline::connect_dynamic_param(const String& 
param, etl::loose_handle<V
 {
        synfig::info("attempting to connect %s", param.c_str());
        if(param=="bline")
+       {
                if(!connect_bline_to_wplist(x))
                        synfig::warning("Advanced Outline: WPList doesn't 
accept new bline");
+       }
+       if(param=="wplist")
+       {
+               if(Layer::connect_dynamic_param(param, x))
+               {
+                       DynamicParamList::const_iterator 
iter(dynamic_param_list().find("bline"));
+                       if(iter==dynamic_param_list().end())
+                               {
+                                       synfig::warning("BLine doesn't exists 
yet!!");
+                                       return false;
+                               }
+                       else if(!connect_bline_to_wplist(iter->second))
+                       {
+                               synfig::warning("Advanced Outline: WPList 
doesn't accept new bline");
+                               return false;
+                       }
+                       else
+                               return true;
+               }
+               else
+                       return false;
+       }
        return Layer::connect_dynamic_param(param, x);
 }
 
@@ -446,5 +469,6 @@ 
Advanced_Outline::connect_bline_to_wplist(etl::loose_handle<ValueNode> x)
        if(!wplist->link_count())
                synfig::warning("Advanced_Outline::connect_bline_to_wplist: 
WPList::link_count()=0");
        wplist->set_bline(ValueNode::Handle(x));
+       synfig::info("set bline success");
        return true;
 }


------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to