From: dooglus Date: Tue, 25 Nov 2008 01:20:19 +0000 (+0000) Subject: Fix ValueDesc::get_value_node() so it works with constant valuenodes too. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=edbf9f94aa503e33a27e40701b67221f3ade5f3e;p=synfig.git 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 --- 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; }