mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Apply intent category when changing to quality changes group
This essentially makes the quality changes depend on the intent that was active when it was created. Contributes to issue CURA-6600.
This commit is contained in:
parent
4fd886f2e8
commit
83c8b814d9
2 changed files with 32 additions and 2 deletions
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from UM.Settings.ContainerRegistry import ContainerRegistry
|
||||
|
||||
from cura.Machines.ContainerNode import ContainerNode
|
||||
|
||||
if TYPE_CHECKING:
|
||||
|
|
@ -14,4 +16,5 @@ if TYPE_CHECKING:
|
|||
class IntentNode(ContainerNode):
|
||||
def __init__(self, container_id: str, quality: "QualityNode") -> None:
|
||||
super().__init__(container_id)
|
||||
self.quality = quality
|
||||
self.quality = quality
|
||||
self.intent_category = ContainerRegistry.getInstance().findContainersMetadata(id = container_id)[0].get("intent_category", "default")
|
||||
Loading…
Add table
Add a link
Reference in a new issue