mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 05:09:06 +08:00
Fix crash loading almost empty project. Added return value to functions in SettingInheritanceManager
This commit is contained in:
parent
88f73d881c
commit
4085cfe67e
@ -32,7 +32,7 @@ class SettingInheritanceManager(QObject):
|
||||
def getChildrenKeysWithOverride(self, key):
|
||||
definitions = self._global_container_stack.getBottom().findDefinitions(key=key)
|
||||
if not definitions:
|
||||
return
|
||||
return []
|
||||
result = []
|
||||
for key in definitions[0].getAllKeys():
|
||||
if key in self._settings_with_inheritance_warning:
|
||||
@ -51,7 +51,7 @@ class SettingInheritanceManager(QObject):
|
||||
|
||||
definitions = self._global_container_stack.getBottom().findDefinitions(key=key)
|
||||
if not definitions:
|
||||
return
|
||||
return []
|
||||
result = []
|
||||
for key in definitions[0].getAllKeys():
|
||||
if self._settingIsOverwritingInheritance(key, extruder):
|
||||
|
Loading…
x
Reference in New Issue
Block a user