Author: Carlos Lopez <[email protected]>
Date:   Sun Mar 20 18:44:59 2011 +0100

Avoid select widthpoints's position and width ducks when dragging a box on 
canvas

---

 synfig-studio/src/gui/duckmatic.cpp |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/synfig-studio/src/gui/duckmatic.cpp 
b/synfig-studio/src/gui/duckmatic.cpp
index 2291c2b..ea0d808 100644
--- a/synfig-studio/src/gui/duckmatic.cpp
+++ b/synfig-studio/src/gui/duckmatic.cpp
@@ -286,6 +286,9 @@ Duckmatic::is_duck_group_selectable(const 
etl::handle<Duck>& x)const
                                        
ValueNode_BLineCalcVertex::Handle::cast_dynamic(
                                                
parent_value_node->get_link("point")))
                                        return false;
+                               // widths ducks of the widthpoints
+                               if (parent_value_node->get_type() == 
ValueBase::TYPE_WIDTHPOINT)
+                                       return false;
                        }
                        else if 
(ValueNode_BLine::Handle::cast_dynamic(parent_value_node))
                        {
@@ -295,6 +298,10 @@ Duckmatic::is_duck_group_selectable(const 
etl::handle<Duck>& x)const
                                        
ValueNode_BLineCalcVertex::Handle::cast_dynamic(composite->get_link("point")))
                                        return false;
                        }
+                       // position ducks of the widthpoints
+                       else if 
(ValueNode_WPList::Handle::cast_dynamic(parent_value_node))
+                               return false;
+
                }
        }
        return true;


------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to