mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 20:28:01 -06:00
Start overriding getProperty in GlobalStack
Since we have the "resolve" property, we should transparently handle it so lookup can just use "value". Contributes to CURA-3497
This commit is contained in:
parent
0656dd53c3
commit
4904e449a0
1 changed files with 8 additions and 0 deletions
|
@ -12,6 +12,14 @@ class GlobalStack(ContainerStack):
|
||||||
def __init__(self, container_id, *args, **kwargs):
|
def __init__(self, container_id, *args, **kwargs):
|
||||||
super().__init__(container_id, *args, **kwargs)
|
super().__init__(container_id, *args, **kwargs)
|
||||||
|
|
||||||
|
def getProperty(self, key, property_name):
|
||||||
|
if property_name == "value":
|
||||||
|
resolve = super().getProperty(key, "resolve")
|
||||||
|
if resolve:
|
||||||
|
return resolve
|
||||||
|
|
||||||
|
return super().getProperty(key, property_name)
|
||||||
|
|
||||||
def setNextStack(self, next_stack):
|
def setNextStack(self, next_stack):
|
||||||
raise CannotSetNextStackError("Global stack cannot have a next stack!")
|
raise CannotSetNextStackError("Global stack cannot have a next stack!")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue