Skip to content
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

[designspace] Only write classic components if _all_ components in _all_ layers are classic #765

Merged
merged 3 commits into from
Aug 31, 2023

Conversation

justvanrossum
Copy link
Collaborator

Previously, it was decided on a per layer / per component basis whether it would be stored as a classic component or as a variable component.

This could mess up the component order if a component was considered variable in one source and not in another, even though that can be a perfectly compatible situation.

Additionally, if a component would use tCenterX/Y but no location, it would be stored as a classic component, thereby losing the tCenterX/Y information.

To avoid that, only write classic components if all components in all layers are classic (non-variable).

This fixes #585.

@justvanrossum justvanrossum merged commit 65da81a into main Aug 31, 2023
3 checks passed
@justvanrossum justvanrossum deleted the better-classic-components branch August 31, 2023 14:31
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.

[designspace] Component with tCenterX/Y gets stored as "classic" component
1 participant