Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalle-Samuli Riihikoski <haikalle@gmail.com>2020-10-10 12:00:06 +0300
committerKalle-Samuli Riihikoski <haikalle@gmail.com>2020-10-10 12:00:06 +0300
commit0496bc5f63511f722243ee73b09fb78118cf882c (patch)
tree9e6b204339bf828223d9287888dac9190e21263e
parentbf3c9f5901014fcc6b064bd2b516c179b2eee38c (diff)
io_coat3D: remove variable not used
-rw-r--r--io_coat3D/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py
index 7f23801a..83f11a0e 100644
--- a/io_coat3D/__init__.py
+++ b/io_coat3D/__init__.py
@@ -64,7 +64,6 @@ bpy.coat3D['active_coat'] = ''
bpy.coat3D['status'] = 0
initial_settings = True
-time_interval = 2.0
global_exchange_folder = ''
@@ -93,6 +92,7 @@ def folder_size(path):
def set_exchange_folder():
platform = os.sys.platform
coat3D = bpy.context.scene.coat3D
+ source = ''
if(platform == 'win32' or platform == 'darwin'):
exchange = os.path.expanduser("~") + os.sep + 'Documents' + os.sep + 'Applinks' + os.sep + '3D-Coat' + os.sep +'Exchange'
@@ -120,7 +120,8 @@ def set_exchange_folder():
if(not(os.path.isdir(applink_folder))):
os.makedirs(applink_folder)
- if(os.path.isfile(exchange_path) == False or os.path.getsize(exchange_path) == 0):
+ if(os.path.isfile(exchange_path) == False):
+
file = open(exchange_path, "w")
file.write("%s"%(exchange_path))
file.close()
@@ -128,6 +129,7 @@ def set_exchange_folder():
else:
exchangeline = open(exchange_path)
+
for line in exchangeline:
source = line
break