Add size lock
This commit is contained in:
parent
a73f5e2122
commit
8a4d9a4f07
9 changed files with 55 additions and 19 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
#include "../DrawData.hpp"
|
||||
#include "DrawingProgramCache.hpp"
|
||||
#include "ToolConfiguration.hpp"
|
||||
#include "Tools/GridModifyTool.hpp"
|
||||
#include <Helpers/NetworkingObjects/NetObjWeakPtr.hpp>
|
||||
#include "Tools/PanCanvasTool.hpp"
|
||||
|
|
@ -92,6 +93,8 @@ class DrawingProgram {
|
|||
DrawingProgramToolType toolTypeAfterTempMove;
|
||||
|
||||
struct GlobalControls {
|
||||
std::optional<WorldScalar> lockedCameraScale;
|
||||
|
||||
WorldVec previousMouseWorldPos = {0, 0};
|
||||
WorldVec currentMouseWorldPos = {0, 0};
|
||||
bool leftClick = false;
|
||||
|
|
@ -143,4 +146,5 @@ class DrawingProgram {
|
|||
friend class DrawingProgramLayerManager;
|
||||
friend class DrawingProgramLayer;
|
||||
friend class DrawingProgramLayerFolder;
|
||||
friend class ToolConfiguration;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue