2011-03-21 12:40:06 +00:00
|
|
|
# ##### BEGIN GPL LICENSE BLOCK #####
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
2014-09-17 08:36:17 +00:00
|
|
|
#
|
2011-03-21 12:40:06 +00:00
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software Foundation,
|
|
|
|
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
#
|
|
|
|
# ##### END GPL LICENSE BLOCK #####
|
|
|
|
|
|
|
|
# <pep8 compliant>
|
|
|
|
|
|
|
|
if "bpy" in locals():
|
|
|
|
from imp import reload as _reload
|
|
|
|
for val in _modules_loaded.values():
|
|
|
|
_reload(val)
|
2012-12-20 07:57:26 +00:00
|
|
|
_modules = [
|
2011-03-21 12:40:06 +00:00
|
|
|
"add_mesh_torus",
|
2011-09-22 19:50:41 +00:00
|
|
|
"anim",
|
2011-11-07 12:55:18 +00:00
|
|
|
"clip",
|
2011-09-22 19:50:41 +00:00
|
|
|
"console",
|
2011-03-21 12:40:06 +00:00
|
|
|
"image",
|
2013-08-26 20:23:26 +00:00
|
|
|
"mask",
|
2011-03-21 12:40:06 +00:00
|
|
|
"mesh",
|
2012-08-08 16:44:16 +00:00
|
|
|
"node",
|
2011-03-21 12:40:06 +00:00
|
|
|
"object_align",
|
|
|
|
"object",
|
|
|
|
"object_randomize_transform",
|
2011-03-30 10:29:32 +00:00
|
|
|
"object_quick_effects",
|
2011-03-21 12:40:06 +00:00
|
|
|
"presets",
|
2013-01-23 05:56:44 +00:00
|
|
|
"rigidbody",
|
2011-03-21 12:40:06 +00:00
|
|
|
"screen_play_rendered_anim",
|
|
|
|
"sequencer",
|
|
|
|
"uvcalc_follow_active",
|
|
|
|
"uvcalc_lightmap",
|
|
|
|
"uvcalc_smart_project",
|
|
|
|
"vertexpaint_dirt",
|
2011-09-22 19:50:41 +00:00
|
|
|
"view3d",
|
2011-03-21 12:40:06 +00:00
|
|
|
"wm",
|
2012-12-20 07:57:26 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
import bpy
|
|
|
|
|
2013-01-05 22:24:05 +00:00
|
|
|
if bpy.app.build_options.freestyle:
|
2012-12-20 07:57:26 +00:00
|
|
|
_modules.append("freestyle")
|
2011-03-21 12:40:06 +00:00
|
|
|
__import__(name=__name__, fromlist=_modules)
|
|
|
|
_namespace = globals()
|
2012-12-20 07:57:26 +00:00
|
|
|
_modules_loaded = {name: _namespace[name] for name in _modules if name != 'bpy'}
|
2011-03-21 12:40:06 +00:00
|
|
|
del _namespace
|
|
|
|
|
|
|
|
|
|
|
|
def register():
|
|
|
|
bpy.utils.register_module(__name__)
|
|
|
|
|
|
|
|
|
|
|
|
def unregister():
|
|
|
|
bpy.utils.unregister_module(__name__)
|