Always draw 'real' ducks on the right hand side of the circle they define. Previousl...
[synfig.git] / synfig-studio / trunk / src / synfigapp / value_desc.h
index ad06f33..bc4405e 100644 (file)
@@ -143,7 +143,7 @@ public:
                if(parent_is_layer_param() && layer->dynamic_param_list().count(name))
                        return layer->dynamic_param_list().find(name)->second;
                if(parent_is_linkable_value_node())
-                       return synfig::LinkableValueNode::Handle::cast_reinterpret(parent_value_node)->get_link(index);
+                       return (synfig::LinkableValueNode::Handle::cast_reinterpret(parent_value_node))->get_link(index);
 //                     return reinterpret_cast<synfig::LinkableValueNode*>(parent_value_node.get())->get_link(index);
                return 0;
        }
@@ -151,8 +151,8 @@ public:
        synfig::ValueBase
        get_value(synfig::Time time=0)const
        {
-               if(parent_is_value_node_const() && parent_value_node)
-                       // \todo "(*parent_value_node)(0)"?  shouldn't that be "(*parent_value_node)(time)"?
+               // if the value is constant, return that constant value (at *any* time, it doesn't matter which)
+               if(parent_is_value_node_const())
                        return (*parent_value_node)(0);
                if(is_value_node() && get_value_node())
                        return (*get_value_node())(time);
@@ -175,6 +175,9 @@ public:
        {
                return is_value_node() && get_value_node()->is_exported();
        }
+
+       synfig::String
+       get_description(bool show_exported_name = true)const;
 }; // END of class ValueDesc
 
 }; // END of namespace synfigapp_instance