[Bf-extensions-cvs] [d0f6ea61] blender2.8: Change i a little bit how 3b file opens other than Win OS.
Kalle-Samuli Riihikoski
noreply at git.blender.org
Mon Sep 3 10:00:37 CEST 2018
Commit: d0f6ea612031f1fdefe003486a3ce1226139a847
Author: Kalle-Samuli Riihikoski
Date: Mon Sep 3 10:57:56 2018 +0300
Branches: blender2.8
https://developer.blender.org/rBAd0f6ea612031f1fdefe003486a3ce1226139a847
Change i a little bit how 3b file opens other than Win OS.
===================================================================
M io_coat3D/__init__.py
===================================================================
diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py
index 87d0257d..083367f2 100644
--- a/io_coat3D/__init__.py
+++ b/io_coat3D/__init__.py
@@ -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'}
More information about the Bf-extensions-cvs
mailing list