mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 07:07:05 +01:00
fix(editor): a photo origin aligned by hand isn't overridden by //$g, the 4K photos of the zoom take the tile under the camera alone
- //$g of the scenery file went before the origin of //$o, also where the user had aligned the photo by hand in the editor: the alignment was gone on the next opening. An origin typed in the editor is written into //$o with the word "aligned", and such an origin goes before //$g. The word is optional: a release before it passes it over and reads the origin as before, and an //$o without it is read as before. "Use it" (the origin of //$g) takes the word off. - The zoom turned the 4K photos on for the 3 x 3 tiles around the camera, as the setting for them does: up to about 0.75 GB of the memory of the graphics card, unasked. By the zoom alone the 4K photo is the tile under the camera (about 85 MB); the setting keeps the 3 x 3.
This commit is contained in:
@@ -138,9 +138,15 @@ std::vector<glm::dvec2> outline_of(std::set<square> const &Squares, double const
|
||||
|
||||
} // namespace
|
||||
|
||||
origin_choice choose_origin(std::optional<glm::dvec2> const &Georeference, std::optional<glm::dvec2> const &Mark, std::optional<glm::dvec2> const &Remembered)
|
||||
origin_choice choose_origin(std::optional<glm::dvec2> const &Georeference, std::optional<glm::dvec2> const &Mark, std::optional<glm::dvec2> const &Remembered, bool const MarkAligned)
|
||||
{
|
||||
origin_choice result;
|
||||
if (MarkAligned && known(Mark))
|
||||
{
|
||||
result.origin = *Mark;
|
||||
result.from = origin_source::mark;
|
||||
return result;
|
||||
}
|
||||
if (known(Georeference))
|
||||
{
|
||||
result.origin = *Georeference;
|
||||
|
||||
Reference in New Issue
Block a user