Skip to content

Commit

Permalink
Material: fix open material editor with empty material, regression wa…
Browse files Browse the repository at this point in the history
…s added with commit 0f87516
  • Loading branch information
berndhahnebach committed Nov 9, 2020
1 parent 59c5005 commit 6455352
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Mod/Material/MaterialEditor.py
Expand Up @@ -414,6 +414,8 @@ def getDict(self):
"returns a dictionary from the contents of the editor."

model = self.widget.treeView.model()
if model is None:
return {}
root = model.invisibleRootItem()

d = {}
Expand Down

0 comments on commit 6455352

Please sign in to comment.