| 298 | } |
| 299 | |
| 300 | void DrawingProgram::scale_up(const WorldScalar& scaleUpAmount) { |
| 301 | selection.deselect_all(); |
| 302 | switch_to_tool(drawTool->get_type() == DrawingProgramToolType::GRIDMODIFY ? DrawingProgramToolType::EDIT : drawTool->get_type(), true); |
| 303 | layerMan.scale_up(scaleUpAmount); |
| 304 | if(controls.lockedCameraScale.has_value()) |
| 305 | controls.lockedCameraScale.value() *= scaleUpAmount; |
| 306 | rebuild_cache(); |
| 307 | } |
| 308 | |
| 309 | void DrawingProgram::write_components_server(cereal::PortableBinaryOutputArchive& a) { |
| 310 | layerMan.write_components_server(a); |
nothing calls this directly
no test coverage detected