mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-28 13:21:10 -07:00
Fix GlobalStack::getProperty
It used to only consider user values in the "user" containers, now it also accounts for values in the other instance containers.
This commit is contained in:
parent
70dc9fd95b
commit
323107ef5c
1 changed files with 3 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ from UM.Decorators import override
|
||||||
from UM.MimeTypeDatabase import MimeType, MimeTypeDatabase
|
from UM.MimeTypeDatabase import MimeType, MimeTypeDatabase
|
||||||
from UM.Settings.ContainerStack import ContainerStack, InvalidContainerStackError
|
from UM.Settings.ContainerStack import ContainerStack, InvalidContainerStackError
|
||||||
from UM.Settings.InstanceContainer import InstanceContainer
|
from UM.Settings.InstanceContainer import InstanceContainer
|
||||||
|
from UM.Settings.SettingInstance import InstanceState
|
||||||
from UM.Settings.DefinitionContainer import DefinitionContainer
|
from UM.Settings.DefinitionContainer import DefinitionContainer
|
||||||
from UM.Settings.ContainerRegistry import ContainerRegistry
|
from UM.Settings.ContainerRegistry import ContainerRegistry
|
||||||
from UM.Settings.Interfaces import ContainerInterface
|
from UM.Settings.Interfaces import ContainerInterface
|
||||||
|
|
@ -73,7 +74,8 @@ class GlobalStack(CuraContainerStack):
|
||||||
# track all settings that are being resolved.
|
# track all settings that are being resolved.
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if self.hasUserValue(key):
|
setting_state = super().getProperty(key, "state")
|
||||||
|
if setting_state is not None and setting_state != InstanceState.Default:
|
||||||
# When the user has explicitly set a value, we should ignore any resolve and
|
# When the user has explicitly set a value, we should ignore any resolve and
|
||||||
# just return that value.
|
# just return that value.
|
||||||
return False
|
return False
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue