From 735ec949e5d002bcc2e871cddb1a3098067d4767 Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 18 Nov 2008 23:27:12 +0000 Subject: [PATCH] Just comments. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2212 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/synfigapp/actions/valuedescexport.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/synfig-studio/trunk/src/synfigapp/actions/valuedescexport.cpp b/synfig-studio/trunk/src/synfigapp/actions/valuedescexport.cpp index fdedc37..9fd634c 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/valuedescexport.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/valuedescexport.cpp @@ -147,6 +147,7 @@ Action::ValueDescExport::prepare() if(value_desc.get_value_type()==ValueBase::TYPE_CANVAS) { + // action: CanvasAdd if(!value_desc.is_const()) throw Error(_("Can only export Canvas when used as constant parameter")); Canvas::Handle canvas(value_desc.get_value().get(Canvas::Handle())); @@ -167,7 +168,6 @@ Action::ValueDescExport::prepare() return; } - if(value_desc.is_value_node()) { if(value_desc.get_value_node()->is_exported()) @@ -177,6 +177,7 @@ Action::ValueDescExport::prepare() } else { + // action: LayerParamConnect if(!value_desc.parent_is_layer_param()) throw Error(_("Unable to export parameter. (Bug?)")); @@ -197,6 +198,7 @@ Action::ValueDescExport::prepare() add_action_front(action); } + // action: ValueNodeAdd Action::Handle action(ValueNodeAdd::create()); action->set_param("canvas",get_canvas()); -- 2.7.4