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-13 15:07:53 +0300
committerKalle-Samuli Riihikoski <haikalle@gmail.com>2020-10-13 15:07:53 +0300
commit714c7038453301e93d3dba0d66e3575b29bcf22d (patch)
tree99f9701b8a5ddfb00e823a0e34fd15a7e3b2ddf6
parentfe901221d08b03afad9444dcd798dd9ce1c5c744 (diff)
io_coat3D: Make sure applink settings stay the same when loading new scene
-rw-r--r--io_coat3D/__init__.py2
-rw-r--r--io_coat3D/folders.py7
2 files changed, 5 insertions, 4 deletions
diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py
index f1fc6a7c..3282dbf6 100644
--- a/io_coat3D/__init__.py
+++ b/io_coat3D/__init__.py
@@ -95,6 +95,8 @@ def every_3_seconds():
@persistent
def load_handler(dummy):
+ global foundExchangeFolder
+ foundExchangeFolder = False
bpy.app.timers.register(every_3_seconds)
def removeFile(exportfile):
diff --git a/io_coat3D/folders.py b/io_coat3D/folders.py
index ec6b62e5..38df882d 100644
--- a/io_coat3D/folders.py
+++ b/io_coat3D/folders.py
@@ -3,15 +3,13 @@ import os
def InitFolders():
-
-
platform = os.sys.platform
coat3D = bpy.context.scene.coat3D
# Global variable foundExchangeFolder (True / False) guides these steps
- # 1. Read Exchange_folder.txt, it not success ->
+ # 1. Read Exchange_folder.txt, if not success ->
# 2. Try to find exchange folder from system hard drive, if not success -->
- # 3. Leave foundExchangeFolder = False
+ # 3. Leave foundExchangeFolder = False
# 1. #################################################################
@@ -72,6 +70,7 @@ def InitFolders():
return False, ''
+
def updateExchangeFile(newPath):
platform = os.sys.platform