]> git.tdb.fi Git - libs/gl.git/commit
Fix exporting of materials without any textures
authorMikko Rasa <tdb@tdb.fi>
Sun, 28 Mar 2021 09:47:29 +0000 (12:47 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 28 Mar 2021 09:47:29 +0000 (12:47 +0300)
commit658df70cfc632e9f931b178ad7fd176c923b63a9
treeff6d93d160abb95e34c1e3ac3b1c684c5fbbd51f
parente1d07383b29e8581230b50f45606192d1f21f5dd
Fix exporting of materials without any textures

If a generator expression produces no items, trying to access __next__()
produces a StopIteration exception.  It's better to create a list so we
can check if it's empty.
blender/io_mspgl/export_material.py