Skip to content

fix: Relativize paths in examples/**/*.map.json#46

Merged
jbuehler23 merged 1 commit into
jbuehler23:mainfrom
davewa:43-relative-paths
Apr 20, 2026
Merged

fix: Relativize paths in examples/**/*.map.json#46
jbuehler23 merged 1 commit into
jbuehler23:mainfrom
davewa:43-relative-paths

Conversation

@davewa
Copy link
Copy Markdown
Contributor

@davewa davewa commented Mar 13, 2026

Closes:

Manually changed the *.map.json files, replacing absolute file paths with assets-path-relative paths to the same files. Also changed all \\ to / in paths.

Testing

Passes all PR checks:

cargo fmt --all
cargo clippy --workspace -- -D warnings
cargo test --workspace

cargo run --example collision_demo works correctly on macOS 26.3.1 (Apple M2), and Windows 11 (aarch64).

Notes

This only edits the *.map.json files in the examples/ folder, there are no code changes. Creating a new project using the editor still writes absolute paths into the .map.json file for the project. I'd prefer to address that in a separate PR, possibly using diff_paths to handle creating relative paths to files outside of the assets folder.

@jbuehler23 jbuehler23 merged commit 4f43478 into jbuehler23:main Apr 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants