Add size lock
This commit is contained in:
parent
a73f5e2122
commit
8a4d9a4f07
9 changed files with 55 additions and 19 deletions
|
|
@ -52,6 +52,8 @@ void DrawingProgram::server_init_no_file() {
|
|||
void DrawingProgram::scale_up(const WorldScalar& scaleUpAmount) {
|
||||
selection.deselect_all();
|
||||
layerMan.scale_up(scaleUpAmount);
|
||||
if(controls.lockedCameraScale.has_value())
|
||||
controls.lockedCameraScale.value() *= scaleUpAmount;
|
||||
rebuild_cache();
|
||||
switch_to_tool(drawTool->get_type() == DrawingProgramToolType::GRIDMODIFY ? DrawingProgramToolType::EDIT : drawTool->get_type(), true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue