MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / delete_all

Method delete_all

src/DrawingProgram/DrawingProgramSelection.cpp:725–733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

723}
724
725void DrawingProgramSelection::delete_all() {
726 check_add_stroke_color_change_undo();
727
728 if(is_something_selected()) {
729 auto selectedSetTemp = selectedSet;
730 reset_all(); // Clear set before erasing, since calling erase_component_set will run a check to see if each object is selected and erase them one by one, which is slower
731 drawP.layerMan.erase_component_container(selectedSetTemp);
732 }
733}
734
735void DrawingProgramSelection::erase_component(CanvasComponentContainer::ObjInfo* objToCheck) {
736 check_add_stroke_color_change_undo();

Callers 1

selection_action_menuMethod · 0.80

Calls 1

Tested by

no test coverage detected