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:
authorCampbell Barton <ideasman42@gmail.com>2010-12-23 00:41:21 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-12-23 00:41:21 +0300
commit1efbaf92ae58278c0b5675b35f3a0970265cb895 (patch)
tree3112322307935c6be5f2020810e1b68cbcabefc0 /io_coat3D
parentd6026d486e5b8349f513774e7e9ebadbfe029091 (diff)
use imp.reload() rather then reload().
Diffstat (limited to 'io_coat3D')
-rw-r--r--io_coat3D/__init__.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py
index 53694a1e..92efcc67 100644
--- a/io_coat3D/__init__.py
+++ b/io_coat3D/__init__.py
@@ -32,16 +32,17 @@ bl_addon_info = {
"category": "Import/Export"}
+if "bpy" in locals():
+ import imp
+ imp.reload(coat)
+ imp.reload(tex)
+else:
+ from . import coat
+ from . import tex
-#if "bpy" in locals(): Don't know if this is important
-# reload(render)
-# reload(ui)
-
-#else:
import bpy
from bpy.props import *
-from io_coat3D import coat
-from io_coat3D import tex
+
def register():