- assert(0); // we shouldn't get here I don't think
- if(value_desc.get_value_node()->is_exported())
- throw Error(_("ValueBase is already exported"));
-
- value_node=value_desc.get_value_node();
- }
- else
- {
- // action: LayerParamConnect
- if(!value_desc.parent_is_layer_param())
- throw Error(_("Unable to export parameter. (Bug?)"));
-
- value_node=ValueNode_Const::create(canvas);
-
- Action::Handle action(LayerParamConnect::create());