ZeroDivisionError
Shyrtle opened this issue · comments
I am running into an issue with importing files from cgbookcase.
When I paste the link, and press import, it asks what resolution I would like to get, and I select a resolution. Then it pops up with the following error.
It says there is a ZeroDvisionError: integer division or modulo by zero.
It looks like there is an issue going on with the selected_variants = [(variants_data[variant_index % n], False)]
line.
- URL of the material or world that failed to import (and variant, if applicable): Happening with many (possibly all) cgbookcase textures.
- Version of LilySurfaceScrapper: 1.7.1 Latest as of 5/24/2021
- Version of Blender: 2.92
- Operating System: Windows 10
I have tried restarting blender and the computer, as well as re-downloading and reinstalling the addon.
This is due to cgbookcase having changed the structure of their HTML, I'll update the scraping rules.
Fixed with v1.7.3: https://github.com/eliemichel/LilySurfaceScraper/releases/tag/v1.7.3