Repository navigation
Open the crossing editor on an object that has no path yet - #146
Open
benchan0527 wants to merge 1 commit into
Open
benchan0527 wants to merge 1 commit into
benchan0527 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Selecting an object that has no
[path]of its own and pressing Crossing editor did not open it: the window fell back to the map's list of crossings and said the object "has no path". That made a crossing out of anything impossible — the editor is exactly where its first path would be drawn.Now
Start from a nearby path), or carried on with+/Nonce one exists.[paths]) is still refused, and for the same reason as before: openMapper does not read that file, so it would write back an object that had lost them.Testing
cargo test --bin openmapper -- crossing: 117 passed, 1 failed — the failure iseditor::tests::a_signal_head_put_by_a_crossing_takes_its_light_from_it, one of the tests that read an installed OMSI 2's content, and it fails the same way without this change.cargo test --bin openmapper -- ui_crossing: 69 passed.python tools/i18n/check.py:3103 texts, 26 languages: complete. No interface text is added: the refusal that went away uses a message nothing shows any more.crossing_edit::tests::an_object_with_no_path_of_its_own_is_still_the_editors: a.scowith no path is not refused, and one with[paths]still is.crossing_edit::tests::an_object_without_paths_is_read_and_written_back_as_it_was(was...is_not_offered): an object with no path still parses and is written back byte for byte, so opening one and saving it changes nothing.By hand
Paths (0)..scogains[path]s, the old file kept as a.bak..scosays[paths]: it is still refused, with the message saying why.