mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -06:00
Fix update quality upon material change
This commit is contained in:
parent
df46241225
commit
5412a29ef9
1 changed files with 3 additions and 2 deletions
|
@ -839,7 +839,8 @@ class MachineManager(QObject):
|
||||||
|
|
||||||
def _setQualityGroup(self, quality_group, empty_quality_changes = True):
|
def _setQualityGroup(self, quality_group, empty_quality_changes = True):
|
||||||
self._current_quality_group = quality_group
|
self._current_quality_group = quality_group
|
||||||
self._current_quality_changes_group = None
|
if empty_quality_changes:
|
||||||
|
self._current_quality_changes_group = None
|
||||||
|
|
||||||
# Set quality and quality_changes for the GlobalStack
|
# Set quality and quality_changes for the GlobalStack
|
||||||
self._global_container_stack.quality = quality_group.node_for_global.getContainer()
|
self._global_container_stack.quality = quality_group.node_for_global.getContainer()
|
||||||
|
@ -946,7 +947,7 @@ class MachineManager(QObject):
|
||||||
if preferred_quality_type in available_quality_types:
|
if preferred_quality_type in available_quality_types:
|
||||||
quality_type = preferred_quality_type
|
quality_type = preferred_quality_type
|
||||||
|
|
||||||
self._setQualityGroup(candidate_quality_groups[quality_type], empty_quality_changes = False)
|
self._setQualityGroup(candidate_quality_groups[quality_type], empty_quality_changes = True)
|
||||||
|
|
||||||
def _updateMaterialWithVariant(self, position: Optional[str]):
|
def _updateMaterialWithVariant(self, position: Optional[str]):
|
||||||
if position is None:
|
if position is None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue