Fix KeyError when browsing HDRIs
This commit is contained in:
parent
f1fa273370
commit
6baf43e53b
@ -230,7 +230,7 @@ class MenuItem:
|
|||||||
if not node_files:
|
if not node_files:
|
||||||
return
|
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
|
map_types.discard('color') # all textures have colour
|
||||||
if not map_types:
|
if not map_types:
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user