30350n / pcb2blender

KiCad to Blender 3D model workflow
GNU General Public License v3.0
521 stars 11 forks source link

Support Blender 4.1 #54

Closed eriklundh closed 5 months ago

eriklundh commented 6 months ago

I had to downgrade to Blender 4.0.2 to get pcb2blender to work. pcb2blender 2.9 has some issues in the install process on Blender 4.1,

30350n commented 6 months ago

Blender 4.1 is not supported yet.

eriklundh commented 6 months ago

No disrespect, fantastic tool. Just wanted to report.

30350n commented 6 months ago

Thanks, all good no worries! ^^

JosephDemarest commented 5 months ago

Blender 4.1 is not supported yet.

is there any update on a potential release time? My system runs like shit on blender 4.0, but on 4.1 it's great. and your tool is fantastic!

Juleinn commented 5 months ago

Hello ! The issue seems to be with the way auto smooth is handled in blender 4.1 ( essentially the option has now been changed to shade smooth by angle, which marks edges as sharp)

obj.data.use_auto_smooth = True

is no longer available (importer.py:1029)

bpy.ops.object.shade_smooth_by_angle()

should work, but I don't know if that is what you want to do in this context. Would you like me to submit a PR for this ?

Best regards,

30350n commented 5 months ago

The auto smooth issue should be fixed now, sadly that wasn't very straight forward though ...

My mediocre test setup is indicating that there's an issue with file saving/loading though, so there won't be a release until that's resolved too.

Juleinn commented 5 months ago

Great, thank you ! :)

30350n commented 5 months ago

My mediocre test setup is indicating that there's an issue with file saving/loading though, so there won't be a release until that's resolved too.

This is due to a bug in Blender 4.1.0 so that version won't be supported. A version that supports 4.1.1+ is available now.