mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
CURA-5404 Retrieve the material settings' values from the variant before
retrieving it from the definition if there are not defined in the material.
This commit is contained in:
parent
9873d57286
commit
931d4716e1
2 changed files with 23 additions and 0 deletions
|
|
@ -655,6 +655,15 @@ class MachineManager(QObject):
|
|||
|
||||
return ""
|
||||
|
||||
@pyqtProperty(str, notify = activeVariantChanged)
|
||||
def activeVariantId(self) -> str:
|
||||
if self._active_container_stack:
|
||||
variant = self._active_container_stack.variant
|
||||
if variant:
|
||||
return variant.getId()
|
||||
|
||||
return ""
|
||||
|
||||
@pyqtProperty(str, notify = activeVariantChanged)
|
||||
def activeVariantBuildplateName(self) -> str:
|
||||
if self._global_container_stack:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue