Another big patch set by Bastien Montagne, thanks a lot!

* Made Freestyle optional (turned on by default).

* Fix for missing bpath.c updates in the previous merge of trunk changes.
This commit is contained in:
2012-12-20 07:57:26 +00:00
parent d433cd65f7
commit a462d69bbf
134 changed files with 877 additions and 174 deletions

View File

@@ -22,12 +22,11 @@ if "bpy" in locals():
from imp import reload as _reload
for val in _modules_loaded.values():
_reload(val)
_modules = (
_modules = [
"add_mesh_torus",
"anim",
"clip",
"console",
"freestyle",
"image",
"mesh",
"node",
@@ -44,15 +43,17 @@ _modules = (
"vertexpaint_dirt",
"view3d",
"wm",
)
__import__(name=__name__, fromlist=_modules)
_namespace = globals()
_modules_loaded = {name: _namespace[name] for name in _modules}
del _namespace
]
import bpy
if 'FREESTYLE' in bpy.app.build_options:
_modules.append("freestyle")
__import__(name=__name__, fromlist=_modules)
_namespace = globals()
_modules_loaded = {name: _namespace[name] for name in _modules if name != 'bpy'}
del _namespace
def register():
bpy.utils.register_module(__name__)