ross-g / io_pdx_mesh

Import/Export files for the Clausewitz game engine
GNU General Public License v3.0
88 stars 11 forks source link

Blender 4.1 No Longer Supports mesh.use_auto_smooth - Temp Fix Attached #92

Closed Tetrino closed 2 months ago

Tetrino commented 8 months ago

Blender no longer supports the Auto Smooth attribute on meshes.

It now assumes behaviour as if Auto Smooth is on all meshes with a value of 180 degrees, as seen here: https://developer.blender.org/docs/release_notes/4.1/modeling/#auto-smooth

Without temporarily removing two lines of code as here, there is an error on import: https://github.com/Tetrino/io_pdx_mesh/commit/5d7827d493e7a966907d586e3799d1704445039f

I have created a convenience PR (#93 ) for anyone who wishes to use it, however this fix is a hack and should never make it to main.

ross-g commented 2 months ago

Thanks for putting this up! I've finally gotten around to fixing this in 2249e35f80a1cc04ba4c2b8e4c650f36b18085db and releasing in 0.91