mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 21:02:50 +00:00
Fix the importer for blender 2.61.
The use_image field of faces disappeared somewhere between 2.59 and 2.61.
This commit is contained in:
parent
3c3a9d0a33
commit
86a401b025
1 changed files with 2 additions and 1 deletions
|
@ -108,7 +108,8 @@ def setup_skins (mdl, uvs):
|
|||
for j, uv in enumerate(f.uv):
|
||||
uv[0], uv[1] = mdl_uv[j]
|
||||
f.image = img
|
||||
f.use_image = True
|
||||
if hasattr(f, "use_image"): # for older blender
|
||||
f.use_image = True
|
||||
mat = bpy.data.materials.new(mdl.name)
|
||||
mat.diffuse_color = (1,1,1)
|
||||
mat.use_raytrace = False
|
||||
|
|
Loading…
Reference in a new issue