Skip to content

Fix adaptive Subdivision UI for Blender 5.0 Compatibility#63

Open
deepdeliberate wants to merge 1 commit intoDangry98:masterfrom
deepdeliberate:adpativesubdiv-blender5
Open

Fix adaptive Subdivision UI for Blender 5.0 Compatibility#63
deepdeliberate wants to merge 1 commit intoDangry98:masterfrom
deepdeliberate:adpativesubdiv-blender5

Conversation

@deepdeliberate
Copy link

Summary

This fixes the adaptive subdivision UI visibility condition for Blender 5.0.

Related: #61, #60

Issue

Adaptive subdivision options were not displaying correctly due to API changes in Blender 5.0.

In previous versions (Blender 4.5 and earlier):

  • object.cycles.dicing_rate was used.
  • object.cycles.use_adaptive_subdivision was checked.
  • The Experimental feature set was required.

In Blender 5.0:

  • scene.cycles.dicing_rate is used instead.
  • use_adaptive_subdivision is now a property of the Subdivision modifier.
  • The Experimental feature set is no longer required.

The previous condition did not account for these changes.

Fix

Updated the adaptive subdivision condition to:

  • Use the correct Blender 5.0 API properties.
  • Remove the unnecessary Experimental feature check.
  • Ensure proper behavior when using Cycles and Subdivision Surface as the last modifier.

Testing

Tested on Blender 5.0.1.

Adaptive subdivision options now work as expected in the Modifier List UI.

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