mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 10:17:52 -06:00
Add intent into stats
CURA-6632
This commit is contained in:
parent
cb526f0f31
commit
74e7de1b54
3 changed files with 10 additions and 7 deletions
|
@ -131,6 +131,14 @@ class GlobalStack(CuraContainerStack):
|
|||
return "machine_stack"
|
||||
return configuration_type
|
||||
|
||||
def getIntentCategory(self) -> str:
|
||||
intent_category = "default"
|
||||
for extruder in self.extruderList:
|
||||
category = extruder.intent.getMetaDataEntry("intent_category", "default")
|
||||
if category != "default" and category != intent_category:
|
||||
intent_category = category
|
||||
return intent_category
|
||||
|
||||
def getBuildplateName(self) -> Optional[str]:
|
||||
name = None
|
||||
if self.variant.getId() != "empty_variant":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue