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

[CURA-12050] Start using the 'force_depends_on_settings' property. #19450

Closed
wants to merge 1 commit into from

Conversation

rburema
Copy link
Member

@rburema rburema commented Jul 30, 2024

This is useful if the relations between settings are cross-extruder, which can happen when a setting that is currently limited to one extruder, depends on another setting (in a value-formula of the like) which is currently limited to another extruder.

Note that I renamed the 'depends_on_settings' to 'force_depends_on_settings' as the former may imply that you should do it for all dependant settings, instead of it being the exception (as we expect that this will occur rarely -- for example in multi-material rafts).

See backend PR: Ultimaker/Uranium#959

This is useful if the relations between settings are cross-extruder, which can happen when a setting that is currently limited to one extruder, depends on another setting (in a value-formula of the like) which is currently limited to _another_ extruder.

Note that Irenamed the 'depends_on_settings' to 'force_depends_on_settings' as the former may imply that you should do it for _all_ dependant settings, instead of it being the exception (as we expect that this will occur rarely -- for example in multi-material rafts).

CURA-12050
Copy link
Member

@nallath nallath left a comment

Choose a reason for hiding this comment

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

Force_depends_on_settings should not be used in fdmprinter.def.json as we don't need it for all printers just for method

Comment on lines +417 to +419
SettingDefinition.addSupportedProperty("force_depends_on_settings", DefinitionPropertyType.Any, default=[],
read_only=True)

Copy link
Member

@nallath nallath Jul 30, 2024

Choose a reason for hiding this comment

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

Suggested change
SettingDefinition.addSupportedProperty("force_depends_on_settings", DefinitionPropertyType.Any, default=[],
read_only=True)

It already lives in uranium, no need to set it again

@nallath
Copy link
Member

nallath commented Jul 30, 2024

Closing this one as these changes are not needed

@nallath nallath closed this Jul 30, 2024
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.

None yet

2 participants