allow 0 alpha (needs disabling mesh in unity)
This commit is contained in:
parent
90b3b48857
commit
748b89018e
@ -650,7 +650,6 @@ def load_b3d(filepath,
|
||||
material = bpy.data.materials.new(name)
|
||||
material.diffuse_color = brush['rgba'][:-1]
|
||||
material.alpha = brush['rgba'][3]
|
||||
material.alpha = max(material.alpha, 0.001) # unity
|
||||
material.use_transparency = material.alpha < 1
|
||||
texture = bpy.data.textures.new(name=name, type='IMAGE')
|
||||
tid = brush['texture_ids'][0]
|
||||
|
Loading…
x
Reference in New Issue
Block a user