Material: fix open material editor with empty material, regression was added with commit 0f87516

This commit is contained in:
Bernd Hahnebach
2020-11-09 19:29:55 +01:00
committed by GitHub
parent 59c50053a6
commit 645535234a

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 = {}