Change canvas color if it was the old default
This commit is contained in:
parent
174b267589
commit
aaf9df8570
1 changed files with 5 additions and 1 deletions
|
|
@ -373,7 +373,11 @@ void World::load_file(cereal::PortableBinaryInputArchive& a, VersionNumber versi
|
|||
else {
|
||||
Vector3f canvasBackColor;
|
||||
a(canvasBackColor);
|
||||
set_canvas_background_color(canvasBackColor);
|
||||
const Vector3f OLD_DEFAULT_CANVAS_BACKGROUND_COLOR{0.12f, 0.12f, 0.12f};
|
||||
if(version < VersionNumber(0, 3, 0) && canvasBackColor == OLD_DEFAULT_CANVAS_BACKGROUND_COLOR)
|
||||
set_canvas_background_color(DEFAULT_CANVAS_BACKGROUND_COLOR);
|
||||
else
|
||||
set_canvas_background_color(canvasBackColor);
|
||||
}
|
||||
|
||||
drawData.cam.smooth_move_to(*this, coordsToJumpTo, windowSizeToJumpTo, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue