mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-22 12:39:22 +08:00
Document why we're only returning full profiles
It's a limitation of the quality manager that would require major refactoring there to fix. Contributes to issue CURA-4243.
This commit is contained in:
parent
430f3dad27
commit
097cc72d89
@ -87,7 +87,7 @@ class ProfilesModel(InstanceContainersModel):
|
|||||||
not_supported_container = ContainerRegistry.getInstance().findContainers(id = "empty_quality")[0]
|
not_supported_container = ContainerRegistry.getInstance().findContainers(id = "empty_quality")[0]
|
||||||
result.append(not_supported_container)
|
result.append(not_supported_container)
|
||||||
|
|
||||||
return {item.getId():item for item in result}, {}
|
return {item.getId():item for item in result}, {} #Only return true profiles for now, no metadata. The quality manager is not able to get only metadata yet.
|
||||||
|
|
||||||
## Re-computes the items in this model, and adds the layer height role.
|
## Re-computes the items in this model, and adds the layer height role.
|
||||||
def _recomputeItems(self):
|
def _recomputeItems(self):
|
||||||
|
@ -43,4 +43,4 @@ class QualityAndUserProfilesModel(ProfilesModel):
|
|||||||
|
|
||||||
result = filtered_quality_changes
|
result = filtered_quality_changes
|
||||||
result.update({q.getId():q for q in quality_list})
|
result.update({q.getId():q for q in quality_list})
|
||||||
return result, {}
|
return result, {} #Only return true profiles for now, no metadata. The quality manager is not able to get only metadata yet.
|
@ -52,7 +52,7 @@ class UserProfilesModel(ProfilesModel):
|
|||||||
(qc.getMetaDataEntry("extruder") == active_extruder.definition.getMetaDataEntry("quality_definition") or
|
(qc.getMetaDataEntry("extruder") == active_extruder.definition.getMetaDataEntry("quality_definition") or
|
||||||
qc.getMetaDataEntry("extruder") == active_extruder.definition.getId())}
|
qc.getMetaDataEntry("extruder") == active_extruder.definition.getId())}
|
||||||
|
|
||||||
return filtered_quality_changes, {}
|
return filtered_quality_changes, {} #Only return true profiles for now, no metadata. The quality manager is not able to get only metadata yet.
|
||||||
|
|
||||||
## Called when a container changed on an extruder stack.
|
## Called when a container changed on an extruder stack.
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user