diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-09-01 16:11:34 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-09-01 16:11:34 +0400 |
commit | a89c526a92a9f3568d4c0dad139d608518edecbb (patch) | |
tree | 1c803ec9baeb56d0e90efee17aadd9c503318656 /release/scripts/io | |
parent | 7532bc23254b6efbee26f69b02da04d66b32c0bb (diff) |
finished moving importers and exporters into python packages (as proposed on the mailing list).
- made operator dir's into python packages
- lazy loading of module which do the actual import and export (faster blender load times)
- general maintanance and small fixes.
- bugfix for exporting x3d materials
- leak fix for exporting 3ds
Diffstat (limited to 'release/scripts/io')
-rw-r--r-- | release/scripts/io/netrender/__init__.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/release/scripts/io/netrender/__init__.py b/release/scripts/io/netrender/__init__.py index 5a705e95aa8..e4f6bf65fe2 100644 --- a/release/scripts/io/netrender/__init__.py +++ b/release/scripts/io/netrender/__init__.py @@ -19,9 +19,7 @@ # This directory is a Python package. # To support reload properly, try to access a package var, if it's there, reload everything -try: - init_data - +if "bpy" in locals(): reload(model) reload(operators) reload(client) @@ -32,7 +30,7 @@ try: reload(balancing) reload(ui) reload(repath) -except: +else: from netrender import model from netrender import operators from netrender import client @@ -49,7 +47,6 @@ slaves = [] blacklist = [] init_file = "" -init_data = True init_address = True def register(): |