Migrate to Blender 5.0 API
- Replaced action.fcurves with channelbag system - Updated EEVEE_NEXT to EEVEE render engine - Removed deprecated material.use_nodes and use_shadeless - Fixed bone selection/hide API for Pose mode
This commit is contained in:
@@ -241,7 +241,7 @@ class AvatarToolKit_OT_AtlasMaterials(Operator):
|
||||
# Create material nodes
|
||||
atlased_mat.material = bpy.data.materials.new(
|
||||
name=f"Atlas_Final_{context.scene.name}_{Path(bpy.data.filepath).stem}")
|
||||
atlased_mat.material.use_nodes = True
|
||||
# Note: material.use_nodes is deprecated in Blender 5.0 - materials always use nodes
|
||||
atlased_mat.material.node_tree.nodes.clear()
|
||||
|
||||
principled_node = atlased_mat.material.node_tree.nodes.new(type="ShaderNodeBsdfPrincipled")
|
||||
|
||||
Reference in New Issue
Block a user