mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-09 04:56:01 +10:00
Fixed Blender exporter not checking if material texture actually has some image.
This commit is contained in:
@@ -689,7 +689,7 @@ def extract_materials(mesh, scene):
|
||||
# http://www.blender.org/documentation/blender_python_api_2_54_0/bpy.types.Material.html#bpy.types.Material.specular_hardness
|
||||
material["specularCoef"] = m.specular_hardness
|
||||
|
||||
if m.active_texture and m.active_texture.type == 'IMAGE':
|
||||
if m.active_texture and m.active_texture.type == 'IMAGE' and m.active_texture.image:
|
||||
fn = bpy.path.abspath(m.active_texture.image.filepath)
|
||||
fn = os.path.normpath(fn)
|
||||
fn_strip = os.path.basename(fn)
|
||||
|
||||
Reference in New Issue
Block a user