Skip to content

Commit

Permalink
import object: activate mesh.show_edge_sharp & material.use_shadeless…
Browse files Browse the repository at this point in the history
… by default
  • Loading branch information
igelbox committed May 24, 2016
1 parent f60306d commit dfc775f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions io_scene_xray/fmt_object_imp.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def _import_mesh(cx, cr, parent):
pr = PackedReader(data)
bm_data.use_auto_smooth = True
bm_data.auto_smooth_angle = math.pi
bm_data.show_edge_sharp = True
edict = {}
for fi, sg in enumerate(pr.getf(str(len(data) // 4) + 'I')):
bmf = bmfaces[fi]
Expand Down Expand Up @@ -407,6 +408,7 @@ def _import_main(fpath, cx, cr):
bpy_material.xray.eshader = eshader
bpy_material.xray.cshader = cshader
bpy_material.xray.gamemtl = gamemtl
bpy_material.use_shadeless = True
if texture:
bpy_texture = cx.bpy.data.textures.get(texture)
if bpy_texture is None:
Expand Down

0 comments on commit dfc775f

Please sign in to comment.