value_node_bline->set_member_canvas(canvas);
- synfigapp::SelectionManager::LayerList layer_selection(get_canvas_view()->get_selection_manager()->get_selected_layers());
+ synfigapp::SelectionManager::LayerList layer_selection;
+ if (!getenv("SYNFIG_TOOLS_CLEAR_SELECTION"))
+ layer_selection = get_canvas_view()->get_selection_manager()->get_selected_layers();
// count how many layers we're going to be creating
int layers_to_create = this->layers_to_create();
canvas=layer->get_canvas();
}
- synfigapp::SelectionManager::LayerList layer_selection(get_canvas_view()->get_selection_manager()->get_selected_layers());
+ synfigapp::SelectionManager::LayerList layer_selection;
+ if (!getenv("SYNFIG_TOOLS_CLEAR_SELECTION"))
+ layer_selection = get_canvas_view()->get_selection_manager()->get_selected_layers();
const synfig::TransformStack& transform(get_canvas_view()->get_curr_transform_stack());
const Point p1(transform.unperform(_p1));
get_canvas_interface()->signal_layer_new_description()(layer,layer->get_description());
egress_on_selection_change=false;
- synfigapp::SelectionManager::LayerList layer_selection(get_canvas_view()->get_selection_manager()->get_selected_layers());
+ synfigapp::SelectionManager::LayerList layer_selection;
+ if (!getenv("SYNFIG_TOOLS_CLEAR_SELECTION"))
+ layer_selection = get_canvas_view()->get_selection_manager()->get_selected_layers();
get_canvas_interface()->get_selection_manager()->clear_selected_layers();
layer_selection.push_back(layer);
get_canvas_interface()->get_selection_manager()->set_selected_layers(layer_selection);
}
}
egress_on_selection_change=false;
- synfigapp::SelectionManager::LayerList layer_selection(get_canvas_view()->get_selection_manager()->get_selected_layers());
+ synfigapp::SelectionManager::LayerList layer_selection;
+ if (!getenv("SYNFIG_TOOLS_CLEAR_SELECTION"))
+ layer_selection = get_canvas_view()->get_selection_manager()->get_selected_layers();
get_canvas_interface()->get_selection_manager()->clear_selected_layers();
layer_selection.push_back(layer);
get_canvas_interface()->get_selection_manager()->set_selected_layers(layer_selection);
get_canvas_interface()->signal_layer_new_description()(layer,layer->get_description());
egress_on_selection_change=false;
- synfigapp::SelectionManager::LayerList layer_selection(get_canvas_view()->get_selection_manager()->get_selected_layers());
+ synfigapp::SelectionManager::LayerList layer_selection;
+ if (!getenv("SYNFIG_TOOLS_CLEAR_SELECTION"))
+ layer_selection = get_canvas_view()->get_selection_manager()->get_selected_layers();
get_canvas_interface()->get_selection_manager()->clear_selected_layers();
layer_selection.push_back(layer);
get_canvas_interface()->get_selection_manager()->set_selected_layers(layer_selection);
canvas=layer->get_canvas();
}
- synfigapp::SelectionManager::LayerList layer_selection(get_canvas_view()->get_selection_manager()->get_selected_layers());
+ synfigapp::SelectionManager::LayerList layer_selection;
+ if (!getenv("SYNFIG_TOOLS_CLEAR_SELECTION"))
+ layer_selection = get_canvas_view()->get_selection_manager()->get_selected_layers();
const synfig::TransformStack& transform(get_canvas_view()->get_curr_transform_stack());
const Point point(transform.unperform(_point));