Material: fix open material editor with empty material, regression was added with commit 0f87516
This commit is contained in:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user