Repository navigation
Mark reimported projects as modified - #271
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
FredApps
left a comment
There was a problem hiding this comment.
Reviewed the exact source at 8870da7. Successful mesh replacement marks the new session modified before switching; failures before the switch leave the original session intact. Independently ran the release engine unit-test binary: 32 passed, including reimporting_a_saved_project_marks_it_modified. Formatting passed; Linux and Windows hosted CI are green for this source. The broader local release command timed out while compiling integration-test binaries, without reporting test results. Related #230 adds a separate Change Mesh feature and remains open.
|
Thank you @Agapenordev! Merged: successful mesh reimports now mark the project modified, restoring the unsaved-changes warning, with a saved-project regression test. Failed reimports remain atomic. Independently verified 32 passing release engine unit tests; exact-head Linux and Windows CI passed. #230 is a separate Change Mesh feature and remains open. |
Summary
User impact
Reimport previously replaced the in-memory mesh while leaving
modified = false. Closing the project could therefore bypass the unsaved-changes warning and lose the reimport, including preserved-stroke remapping.Tests
cargo test -p texturecraft-engine --releasecargo clippy -p texturecraft-engine --all-targets --no-deps -- -D warnings -A clippy::chunks-exact-to-as-chunkscargo xtask layerscargo xtask wasmcargo test -p texturecraft-engine --test session panic_huntmodifiedchanges fromfalsetotrueafterfile.reimportMeshThe unrestricted clippy run is blocked by pre-existing
chunks_exact_to_as_chunkslints ingeom/src/mesh.rsandengine/src/quick_mask.rs; this PR does not change those files.Summary by CodeRabbit