Fix KeyError when browsing HDRIs

This commit is contained in:
Sybren A. Stüvel 2018-01-02 17:24:03 +01:00
parent f1fa273370
commit 6baf43e53b

View File

@ -230,7 +230,7 @@ class MenuItem:
if not node_files:
return
map_types = {f['map_type'] for f in node_files}
map_types = {f.map_type for f in node_files if f.map_type}
map_types.discard('color') # all textures have colour
if not map_types:
return