From bda3e22bcdbeddee4c63d21e47bb1baeb9ca4d30 Mon Sep 17 00:00:00 2001 From: dooglus Date: Wed, 17 Dec 2008 21:06:49 +0000 Subject: [PATCH] Fix: Only show 'export' when right-clicking a canvas parameter if it's not already exported. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2313 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/synfigapp/actions/valuedescexport.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/synfig-studio/trunk/src/synfigapp/actions/valuedescexport.cpp b/synfig-studio/trunk/src/synfigapp/actions/valuedescexport.cpp index da13f65..b0fdc62 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/valuedescexport.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/valuedescexport.cpp @@ -107,7 +107,7 @@ Action::ValueDescExport::is_candidate(const ParamList &x) if(!value_desc || value_desc.parent_is_canvas() || (value_desc.is_value_node() && value_desc.get_value_node()->is_exported()) || - (value_desc.get_value_type()==ValueBase::TYPE_CANVAS && value_desc.get_value_node())) + (value_desc.get_value_type()==ValueBase::TYPE_CANVAS && !value_desc.get_value().get(Canvas::Handle())->is_inline())) { // if (!value_desc) // synfig::info("%s:%d no export because no value_desc", __FILE__, __LINE__); @@ -115,8 +115,8 @@ Action::ValueDescExport::is_candidate(const ParamList &x) // synfig::info("%s:%d no export because parent is canvas", __FILE__, __LINE__); // else if (value_desc.is_value_node() && value_desc.get_value_node()->is_exported()) // synfig::info("%s:%d no export because exported value node", __FILE__, __LINE__); -// else if (value_desc.get_value_type()==ValueBase::TYPE_CANVAS && value_desc.is_value_node()) -// synfig::info("%s:%d no export because canvas value node", __FILE__, __LINE__); +// else if (value_desc.get_value_type()==ValueBase::TYPE_CANVAS && !value_desc.get_value().get(Canvas::Handle())->is_inline()) +// synfig::info("%s:%d no export because canvas isn't inline", __FILE__, __LINE__); return false; } -- 2.7.4