Fix ValueDesc::get_value_node() so it works with constant valuenodes too.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 25 Nov 2008 01:20:19 +0000 (01:20 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 25 Nov 2008 01:20:19 +0000 (01:20 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2262 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/synfigapp/value_desc.h

index 1bf94b2..841b40e 100644 (file)
@@ -146,6 +146,8 @@ public:
                if(parent_is_linkable_value_node())
                        return (synfig::LinkableValueNode::Handle::cast_reinterpret(parent_value_node))->get_link(index);
 //                     return reinterpret_cast<synfig::LinkableValueNode*>(parent_value_node.get())->get_link(index);
+               if(parent_is_value_node_const())
+                       return parent_value_node;
                return 0;
        }