Skip to content

Commit

Permalink
fixed #10 enum MULTIPLY not found
Browse files Browse the repository at this point in the history
  • Loading branch information
joric committed Sep 6, 2023
1 parent d11d6c2 commit a744a4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class DebugMacro(bpy.types.Operator):
from . import import_b3d
from . import export_b3d

filepath = bpy.props.StringProperty(name="filepath", default=import_b3d.filepath)
filepath: bpy.props.StringProperty(name="filepath", default=import_b3d.filepath)

def execute(self, context: bpy.context):
import sys,imp
Expand Down
2 changes: 1 addition & 1 deletion import_b3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def load_b3d(filepath,
material = bpy.data.materials.new(mat.name)
material_mapping[i] = material.name
material.diffuse_color = mat.rgba
material.blend_method = 'MULTIPLY' if mat.rgba[3] < 1.0 else 'OPAQUE'
material.blend_method = 'BLEND' if mat.rgba[3] < 1.0 else 'OPAQUE'

tid = mat.tids[0] if len(mat.tids) else -1

Expand Down

0 comments on commit a744a4d

Please sign in to comment.