Skip to content

Add missing version check for use_auto_smooth #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

w1th0utnam3
Copy link
Member

@w1th0utnam3 w1th0utnam3 commented Jan 15, 2025

Commit 0783423 missed a version check for the use_auto_smooth. This can crash Blender Versions >= 4.1:

AttributeError: 'Mesh' object has no attribute 'use_auto_smooth'
Error in bpy.app.handlers.frame_change_post[0]:
Traceback (most recent call last):
  File "/home/floeschner/.config/blender/4.3/extensions/user_default/sequence_loader/bseq/importer.py", line 355, in update_obj
    update_mesh(meshio_mesh, obj.data)
  File "/home/floeschner/.config/blender/4.3/extensions/user_default/sequence_loader/bseq/importer.py", line 221, in update_mesh
    mesh.use_auto_smooth = True
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Mesh' object has no attribute 'use_auto_smooth'

This PR adds the missing version check.

@digitalillusions digitalillusions merged commit 8ad97b5 into InteractiveComputerGraphics:main Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants