Skip to content

Fix bad element map in Part Design Bodies #22767

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

drwho495
Copy link
Member

@drwho495 drwho495 commented Jul 26, 2025

This PR adds a line that calls a method to fix the element map every time you run setShape
this change can be found in realthunder's branch.

fixes: #22395
fixes: #20277

might need testing for crash detection

@github-actions github-actions bot added Mod: Part Design Related to the Part Design Workbench Mod: Part Related to the Part Workbench labels Jul 26, 2025
@drwho495
Copy link
Member Author

there is a failing toponaming check -- its likely caused by fix being run every time a shape property is updated. this could be an ok thing to fail, and we might want to change the check?

@drwho495
Copy link
Member Author

ok so i figured out that using fix is not the proper thing to do, the swap of the elementmap from the originalshape to the newshape isnt working here for some reason

it has to do with reinstating the hasher from what I can tell

@drwho495 drwho495 mentioned this pull request Jul 27, 2025
2 tasks
@drwho495
Copy link
Member Author

this is sort of a weak patch instead of a proper fix, i will do more digging to find the original issue
the patch still works just fine its just not as good as it can be

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mod: Part Design Related to the Part Design Workbench Mod: Part Related to the Part Workbench
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

Toponaming: parts are less reliable parametrically when the string hasher is enabled. Assembly: TNP when features in part intersect
1 participant