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

Method scale_up

src/DrawingProgram/DrawingProgram.cpp:300–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300void 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
309void DrawingProgram::write_components_server(cereal::PortableBinaryOutputArchive& a) {
310 layerMan.write_components_server(a);

Callers

nothing calls this directly

Calls 3

deselect_allMethod · 0.45
get_typeMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected