#include "layeractionmanager.h"
#include "layertree.h"
#include <synfig/context.h>
+#include <synfig/layer_pastecanvas.h>
#include <synfigapp/action_param.h>
#include "instance.h"
#include <synfigapp/selectionmanager.h>
LayerActionManager::cut()
{
copy();
- if(action_group_->get_action("action-layer_remove"))
- action_group_->get_action("action-layer_remove")->activate();
+ if(action_group_->get_action("action-LayerRemove"))
+ action_group_->get_action("action-LayerRemove")->activate();
}
void
{
layer=(*iter)->clone(guid);
layer_selection.push_back(layer);
- synfigapp::Action::Handle action(synfigapp::Action::create("layer_add"));
+ synfigapp::Action::Handle action(synfigapp::Action::create("LayerAdd"));
assert(action);
if(!action)
return;
}
+ etl::handle<Layer_PasteCanvas> paste = etl::handle<Layer_PasteCanvas>::cast_dynamic(layer);
+ if (paste) paste->update_renddesc();
+
// synfig::info("DEPTH=%d",depth);
// Action to move the layer (if necessary)
if(depth>0)
{
- synfigapp::Action::Handle action(synfigapp::Action::create("layer_move"));
+ synfigapp::Action::Handle action(synfigapp::Action::create("LayerMove"));
assert(action);
if(!action)