Change i a little bit how 3b file opens other than Win OS.

This commit is contained in:
Kalle-Samuli Riihikoski 2018-09-03 10:57:56 +03:00
parent 4602d79026
commit d0f6ea6120
1 changed files with 14 additions and 0 deletions

View File

@ -308,6 +308,20 @@ class SCENE_OT_opencoat(bpy.types.Operator):
file.write("\n[3B]")
file.close()
'''
If not Windows Os it will only write import.txt. Auto run 3d-coat.exe is disabled.
'''
else:
importfile = bpy.context.scene.coat3D.exchangedir
importfile += ('%simport.txt' % (os.sep))
file = open(importfile, "w")
file.write("%s" % (coat3D))
file.write("\n%s" % (coat3D))
file.write("\n[3B]")
file.close()
return {'FINISHED'}