Skip to content

Fix importer issues for Blender 4.x #133

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

squarefish711
Copy link

@squarefish711 squarefish711 commented May 14, 2025

  1. Updated Cycles Sampling Pattern Logic (renderer.py):
  • Problem: Blender 4.0+ removed 'SOBOL_BURLEY' as a valid enum option for the Cycles sampling_pattern. The previous logic, which defaulted to 'SOBOL_BURLEY' for Blender 3.5+, would cause a TypeError in Blender 4.x.
  • Fix: Use 'AUTOMATIC' for Blender versions >= (4, 0, 0).
  1. Conditional Mesh Normal Calculation (shapes.py):
  • Problem: The bl_mesh.calc_normals() method has been removed from the Blender Python API in version 4.x. Calling it results in an AttributeError.
  • Fix: The explicit call to bl_mesh.calc_normals() is now conditional:It is only called if bpy.app.version < (4, 0, 0).

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.

1 participant