Skip to content

Commit

Permalink
fix(material): update alpha blending to use surface_render_method (St…
Browse files Browse the repository at this point in the history
…jerneIdioten#220)

The Material.blend_method API is deprecated as of Blender 4.2. Updated the exporter to use the new Material.surface_render_method instead.
  • Loading branch information
NMC-TBone authored Dec 4, 2024
1 parent 10ac35a commit 0b5d35b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/i3dio/node_classes/material.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def _write_emission(self, emission_color):

def _write_properties(self):
# Alpha blending
if self.blender_material.blend_method in ['CLIP', 'HASHED', 'BLEND']:
if self.blender_material.surface_render_method == 'BLENDED':
self._write_attribute('alphaBlending', True)

def _export_shader_settings(self):
Expand Down

0 comments on commit 0b5d35b

Please sign in to comment.