diff options
author | Maxime Curioni <maxime.curioni@gmail.com> | 2008-07-12 08:02:08 +0400 |
---|---|---|
committer | Maxime Curioni <maxime.curioni@gmail.com> | 2008-07-12 08:02:08 +0400 |
commit | d124d3c5cdfdc9d470a4734281396b97c4d3afb5 (patch) | |
tree | 60cb9464d00ad8937d5bddeae1eb5bb6e95b63ea /source/blender/python | |
parent | d760119f451ef9ff0218ad5e053e51d54c64fc1b (diff) |
soc-2008-mxcurioni: first part of the Freestyle Python implementation. A new Freestyle module is added. The following modules are implemented: BinaryPredicate0D, BinaryPredicate1D, Id, Interface0D, Interface1D. I added a Convert module to help in the creation of Python objects for Freestyle's data structures. I also added a missing file for guarded_alloc needed for compilation on Windows.
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/SConscript | 2 | ||||
-rw-r--r-- | source/blender/python/api2_2x/Blender.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/python/SConscript b/source/blender/python/SConscript index 481fdcbe13e..8612a9d6ca9 100644 --- a/source/blender/python/SConscript +++ b/source/blender/python/SConscript @@ -4,7 +4,7 @@ Import ('env') sources = Split('BPY_interface.c BPY_menus.c') + env.Glob('api2_2x/*.c') incs = 'api2_2x ../blenkernel ../nodes ../blenlib ../blenloader' -incs += ' ../render/extern/include ../radiosity/extern/include' +incs += ' ../render/extern/include ../radiosity/extern/include ../freestyle/intern/python' incs += ' ../makesdna #intern/guardedalloc #intern/bmfont ../imbuf ../include' incs += ' ' + env['BF_PYTHON_INC'] incs += ' ' + env['BF_OPENGL_INC'] diff --git a/source/blender/python/api2_2x/Blender.c b/source/blender/python/api2_2x/Blender.c index d8385c1d660..633badb759d 100644 --- a/source/blender/python/api2_2x/Blender.c +++ b/source/blender/python/api2_2x/Blender.c @@ -97,6 +97,7 @@ struct ID; /*keep me up here */ #include "World.h" #include "Types.h" #include "Particle.h" +#include "Freestyle.h" /**********************************************************/ /* Python API function prototypes for the Blender module. */ @@ -1095,4 +1096,5 @@ void M_Blender_Init(void) PyDict_SetItemString(dict, "Window", Window_Init()); PyDict_SetItemString(dict, "World", World_Init()); + PyDict_SetItemString(dict, "Freestyle", Freestyle_Init()); } |