Enabled property is now taken into account for inheritance override

CURA-2361
This commit is contained in:
Jaime van Kessel 2016-09-16 11:49:23 +02:00
parent 9a7057ce65
commit 615ec67b1b

View file

@ -98,6 +98,10 @@ class SettingInheritanceManager(QObject):
has_user_state = self._active_container_stack.getProperty(key, "state") == UM.Settings.InstanceState.User
if not has_user_state:
return False
if not self._active_container_stack.getProperty(key, "enabled"):
return False
while stack:
containers.extend(stack.getContainers())
stack = stack.getNextStack()