Repository navigation
Keep Auto Drop off for projects saved by 2.4.x - #16633
Merged
Merged
Conversation
2.4.0 to 2.4.2 wrote auto_drop on each build item, and 2.4.x objects carry no auto_drop attribute in model_settings.config. The importer only read the object attribute and treated a missing one as on, so floating objects were dropped to the bed on load and the flag was rewritten as on on the next save. Record object ids with an item auto_drop="0" and use that as the fallback when the object has no attribute. The attribute's presence is now tracked so the fallback applies only when it is absent. Any item set to off turns auto drop off for the object, since the flag is shared by all instances.
|
Hi @lamweilun, you can manage the labels for this PR by Allowed labels are: Examples: |
Contributor
Author
|
/bot add-label bug-fix |
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.
Description
Fixes #16624.
Projects saved by 2.4.0 to 2.4.2 store Auto Drop on each build item, and the object has no
auto_dropattribute inmodel_settings.config. Since #15465 the importer reads only the object attribute and treats a missing one as on. Floating objects in those projects are dropped to the bed on load, and the flag is saved back as on.Changes in
src/libslic3r/Format/bbs_3mf.cpp:ObjectMetadata::auto_dropisstd::optional<bool>, set only when the object has the attribute._handle_start_itemrecords object ids with a build itemauto_drop="0"inm_items_auto_drop_off. The set is cleared with the other import state.Projects already saved by
mainorv2.5.0-alphahaveauto_drop="1"written back and are not recovered by this change.Screenshots/Recordings/Graphs
N/A
Tests
A project in the 2.4.x layout keeps auto drop off from its build itemintests/libslic3r/test_3mf.cpp. It saves a cube with Auto Drop off, moves the flag to the build item the way 2.4.x wrote it, loads the project, and checks the object's Auto Drop is still off.How to Download Pull Requests Artifacts for Testing