mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Ensure that right intents are added to the tree
CURA-6598
This commit is contained in:
parent
d59d7e5b8d
commit
a8b818fbdc
2 changed files with 7 additions and 4 deletions
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from UM.Settings.ContainerRegistry import ContainerRegistry
|
||||
from cura.Machines.ContainerNode import ContainerNode
|
||||
|
||||
if TYPE_CHECKING:
|
||||
|
|
@ -14,4 +15,6 @@ 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
|
||||
my_metadata = ContainerRegistry.getInstance().findContainersMetadata(id=container_id)[0]
|
||||
self.intent_category = my_metadata.get("intent_category", "default")
|
||||
Loading…
Add table
Add a link
Reference in a new issue