| 152 | } |
| 153 | |
| 154 | void EllipseDrawTool::commit() { |
| 155 | if(objInfoBeingEdited) { |
| 156 | NetworkingObjects::NetObjOwnerPtr<CanvasComponentContainer>& containerPtr = objInfoBeingEdited->obj; |
| 157 | containerPtr->commit_update(drawP); |
| 158 | containerPtr->send_comp_update(drawP, true); |
| 159 | commitUpdate = false; |
| 160 | if(containerPtr->get_world_bounds().has_value()) |
| 161 | drawP.layerMan.add_undo_place_component(objInfoBeingEdited); |
| 162 | else { |
| 163 | auto& components = containerPtr->parentLayer->get_layer().components; |
| 164 | components->erase(components, containerPtr->objInfo); |
| 165 | } |
| 166 | objInfoBeingEdited = nullptr; |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | void EllipseDrawTool::draw(SkCanvas* canvas, const DrawData& drawData) { |
| 171 | } |
nothing calls this directly
no test coverage detected