Locked camera scale saved with file
This commit is contained in:
parent
87f51ac044
commit
6889eeff60
2 changed files with 3 additions and 1 deletions
|
|
@ -784,10 +784,13 @@ void DrawingProgram::draw_drag_circle(SkCanvas* canvas, const Vector2f& sPos, co
|
|||
}
|
||||
|
||||
void DrawingProgram::load_file(cereal::PortableBinaryInputArchive& a, VersionNumber version) {
|
||||
if(version >= VersionNumber(0, 6, 0))
|
||||
a(controls.lockedCameraScale);
|
||||
layerMan.load_file(a, version);
|
||||
}
|
||||
|
||||
void DrawingProgram::save_file(cereal::PortableBinaryOutputArchive& a) const {
|
||||
a(controls.lockedCameraScale);
|
||||
layerMan.save_file(a);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -140,7 +140,6 @@ class DrawingProgram {
|
|||
|
||||
struct GlobalControls {
|
||||
std::optional<WorldScalar> lockedCameraScale;
|
||||
|
||||
bool leftClickHeld = false;
|
||||
bool middleClickHeld = false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue