From edbf9f94aa503e33a27e40701b67221f3ade5f3e Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 25 Nov 2008 01:20:19 +0000 Subject: [PATCH] Fix ValueDesc::get_value_node() so it works with constant valuenodes too. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2262 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/synfigapp/value_desc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/synfig-studio/trunk/src/synfigapp/value_desc.h b/synfig-studio/trunk/src/synfigapp/value_desc.h index 1bf94b2..841b40e 100644 --- a/synfig-studio/trunk/src/synfigapp/value_desc.h +++ b/synfig-studio/trunk/src/synfigapp/value_desc.h @@ -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(parent_value_node.get())->get_link(index); + if(parent_is_value_node_const()) + return parent_value_node; return 0; } -- 2.7.4