Material: fix open material editor with empty material, regression was added with commit 66d2688

This commit is contained in:
Bernd Hahnebach
2020-11-09 19:29:55 +01:00
committed by GitHub
parent f0aba7a561
commit 94905acf05

View File

@@ -414,6 +414,8 @@ class MaterialEditor:
"returns a dictionary from the contents of the editor."
model = self.widget.treeView.model()
if model is None:
return {}
root = model.invisibleRootItem()
d = {}