Skip to content

Fix: Blender 4.2 compatibility by updating EEVEE engine detection#178

Open
kunaly111 wants to merge 5 commits intosketchfab:masterfrom
kunaly111:master
Open

Fix: Blender 4.2 compatibility by updating EEVEE engine detection#178
kunaly111 wants to merge 5 commits intosketchfab:masterfrom
kunaly111:master

Conversation

@kunaly111
Copy link

This pull request fixes Blender 4.2 compatibility for the Sketchfab Blender Plugin.

The problem:

  • Blender 4.2 removed the old 'BLENDER_EEVEE' engine constant.
  • The plugin previously used 'BLENDER_EEVEE', which caused the addon to fail.

The fix:

  • Detects available render engines dynamically.
  • Uses 'BLENDER_EEVEE_NEXT' if available, otherwise falls back to 'BLENDER_EEVEE'.
  • Ensures compatibility with Blender 3.x, 4.0, 4.1, and 4.2.
  • Prevents errors when setting the scene render engine.

Tested:

  • Blender 4.2: addon installs, enables, and export panel works.
  • No errors in the console.

Fixes issue: #141

This pull request fixes Blender 4.2 compatibility for the Sketchfab Blender Plugin.

The problem:
- Blender 4.2 removed the old 'BLENDER_EEVEE' engine constant.
- The plugin previously used 'BLENDER_EEVEE', which caused the addon to fail.

The fix:
- Detects available render engines dynamically.
- Uses 'BLENDER_EEVEE_NEXT' if available, otherwise falls back to 'BLENDER_EEVEE'.
- Ensures compatibility with Blender 3.x, 4.0, 4.1, and 4.2.
- Prevents errors when setting the scene render engine.

Tested:
- Blender 4.2: addon installs, enables, and export panel works.
- No errors in the console.
This pull request fixes Blender 4.2 compatibility for the Sketchfab Blender Plugin.

The problem:
- Blender 4.2 removed the old 'BLENDER_EEVEE' engine constant.
- The plugin previously used 'BLENDER_EEVEE', which caused the addon to fail.

The fix:
- Detects available render engines dynamically.
- Uses 'BLENDER_EEVEE_NEXT' if available, otherwise falls back to 'BLENDER_EEVEE'.
- Ensures compatibility with Blender 3.x, 4.0, 4.1, and 4.2.
- Prevents errors when setting the scene render engine.

Tested:
- Blender 4.2: addon installs, enables, and export panel works.
- No errors in the console.

Fixes issue: sketchfab#141
This pull request fixes Blender 4.2 compatibility for the Sketchfab Blender Plugin.

The problem:
- Blender 4.2 removed the old 'BLENDER_EEVEE' engine constant.
- The plugin previously used 'BLENDER_EEVEE', which caused the addon to fail.

The fix:
- Detects available render engines dynamically.
- Uses 'BLENDER_EEVEE_NEXT' if available, otherwise falls back to 'BLENDER_EEVEE'.
- Ensures compatibility with Blender 3.x, 4.0, 4.1, and 4.2.
- Prevents errors when setting the scene render engine.

Tested:
- Blender 4.2: addon installs, enables, and export panel works.
- No errors in the console.

Fixes issue: sketchfab#141
@gmonarque
Copy link

Works just fine, thanks!

@kunaly111
Copy link
Author

Works just fine, thanks!

Thanks for testing and confirming !

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