Laubwerk / player-for-blender

Laubwerk Plants Add-on for Blender
GNU General Public License v2.0
2 stars 2 forks source link

Get plugin to work again on Blender versions starting from 3.1 #1

Closed abc013 closed 7 months ago

abc013 commented 7 months ago

Laubwerk updated their API to support python 3.10/3.11 some time ago. This PR adapts to that and updates a lot of code to make every feature work with the new Blender versions.

schroef commented 2 months ago

I'm seeing issues again when it's trying to rebuild the db. Perhaps due changes in the lbw.gz files structure

There is an issue where it's trying to get name and states that v.name isn't there. I used a different method from the obj2 example to retrieve the name. Yet now I see a json parse error.

I don't know if older setups had the model variants files in a different format. Now they are zipped xnl files in custom format. It looks like the DB is never filled with plant and model names.

My tests where about trying to get the previews thumb loading function working again. See #1 issue for this