Closed bartteunis closed 3 years ago
Traceback (most recent call last): File "C:\Users\bart_\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\blender-to-smf\__init__.py", line 108, in execute return export_smf(self, self.filepath, context, self.export_textures, self.export_nla_tracks, self.export_type, self.mult, self.subdivisions) File "C:\Users\bart_\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\blender-to-smf\smf.py", line 140, in export_smf pixel_number = int(item_number/channels) ZeroDivisionError: division by zero location: <unknown location>:-1 location: <unknown location>:-1
Both Image.pixels and Image.channels return 0 in this case, which causes the error to occur.
Image.pixels
Image.channels
The best way to fix this seems to export the default texture (empty string "") and let the exporter show a warning in Blender.
""
Both
Image.pixels
andImage.channels
return 0 in this case, which causes the error to occur.