Skip to content

Toponaming: Remove unneeded migration dialog pop-up.#27352

Merged
chennes merged 1 commit intoFreeCAD:mainfrom
drwho495:fix-recurring-migration-2
Feb 9, 2026
Merged

Toponaming: Remove unneeded migration dialog pop-up.#27352
chennes merged 1 commit intoFreeCAD:mainfrom
drwho495:fix-recurring-migration-2

Conversation

@drwho495
Copy link
Member

@drwho495 drwho495 commented Feb 5, 2026

Fixes: #27045
Fixes: #27242

This PR removes the '1.' or '0.' prefix that is added to ElementMapVersion strings to identify if a shape uses a hasher or not. When checking if a shape needs to be migrated or not, we would check to see if that prefix is correct or not, which created these extra migration calls because we do not actually know whether a shape has a hasher or not at this stage of restoration of an FCStd file.

Another thing addressed by this PR is the CAM bit shape files, because they needed to be migrated to use Element Mapping Version 5 instead of 4. They were opened in FreeCAD and migrated to use the new ElementMapVersion formatting described above.

@github-actions github-actions bot added Mod: Core Issue or PR touches core sections (App, Gui, Base) of FreeCAD Mod: CAM Related to the CAM Workbench labels Feb 5, 2026
@Connor9220
Copy link
Contributor

Fixes the issue with CAM. Probably should be backported to v1.1

@maxwxyz maxwxyz added Type: Bug This issue or PR is related to a bug backport releases/FreeCAD-1-1 Applied to a PR that is on main to trigger the automatic creation of another PR onto 1.1 labels Feb 5, 2026
@maxwxyz maxwxyz added this to the 1.1 milestone Feb 5, 2026
@maxwxyz maxwxyz added the Approved: Tested The PR was manually tested and approved label Feb 5, 2026
@maxwxyz maxwxyz moved this from Queue to Approved in Merge Queue Feb 5, 2026
Copy link
Member

@kadet1090 kadet1090 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maxwxyz @drwho495 what about example files?

@kadet1090 kadet1090 added the Approved: Code Quality The PR was checked for code quality and approved label Feb 5, 2026
@maxwxyz
Copy link
Collaborator

maxwxyz commented Feb 5, 2026

@drwho495 do they need to be recomputed again? If so, could this be in the PR? Light or dark theme, save with thumbnail.

@Connor9220
Copy link
Contributor

@drwho495 do they need to be recomputed again? If so, could this be in the PR? Light or dark theme, save with thumbnail.

I checked on the bitshape files. They're mixed, but where mixed before, and after reviewing other code changes, we're no longer using the thumbnails. So, no big deal.

@maxwxyz
Copy link
Collaborator

maxwxyz commented Feb 5, 2026

Ideally the example files which are shown on the start page.

@Connor9220
Copy link
Contributor

Ideally the example files which are shown on the start page.
Oh, sorry, didn't understand..

@chennes chennes merged commit 72b1076 into FreeCAD:main Feb 9, 2026
18 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Done in Merge Queue Feb 9, 2026
@chennes
Copy link
Member

chennes commented Feb 9, 2026

If we need to recompute the examples we can do that in a new PR.

@freecad-ci-runner
Copy link
Collaborator

Successfully created backport PR for releases/FreeCAD-1-1:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved: Code Quality The PR was checked for code quality and approved Approved: Tested The PR was manually tested and approved backport releases/FreeCAD-1-1 Applied to a PR that is on main to trigger the automatic creation of another PR onto 1.1 Mod: CAM Related to the CAM Workbench Mod: Core Issue or PR touches core sections (App, Gui, Base) of FreeCAD Type: Bug This issue or PR is related to a bug

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

Recompute always asked. Opening a previously saved file that contains for example a KiCAD imported object repeatedly asks for Recompute

6 participants