diff options
Diffstat (limited to 'source/blenderplayer')
-rw-r--r-- | source/blenderplayer/bad_level_call_stubs/CMakeLists.txt | 4 | ||||
-rw-r--r-- | source/blenderplayer/bad_level_call_stubs/SConscript | 3 | ||||
-rw-r--r-- | source/blenderplayer/bad_level_call_stubs/stubs.c | 17 |
3 files changed, 24 insertions, 0 deletions
diff --git a/source/blenderplayer/bad_level_call_stubs/CMakeLists.txt b/source/blenderplayer/bad_level_call_stubs/CMakeLists.txt index afd5f5b0177..702210d1c5f 100644 --- a/source/blenderplayer/bad_level_call_stubs/CMakeLists.txt +++ b/source/blenderplayer/bad_level_call_stubs/CMakeLists.txt @@ -60,4 +60,8 @@ if(WITH_GAMEENGINE) add_definitions(-DWITH_GAMEENGINE) endif() +if(WITH_FREESTYLE) + add_definitions(-DWITH_FREESTYLE) +endif() + blender_add_lib_nolist(blenkernel_blc "${SRC}" "${INC}" "${INC_SYS}") diff --git a/source/blenderplayer/bad_level_call_stubs/SConscript b/source/blenderplayer/bad_level_call_stubs/SConscript index f26f4dfea6b..41c84051fdf 100644 --- a/source/blenderplayer/bad_level_call_stubs/SConscript +++ b/source/blenderplayer/bad_level_call_stubs/SConscript @@ -41,4 +41,7 @@ if env['WITH_BF_INTERNATIONAL']: if env['WITH_BF_GAMEENGINE']: defs += ' WITH_GAMEENGINE' +if env['WITH_BF_FREESTYLE']: + defs += ' WITH_FREESTYLE' + env.BlenderLib ('blenkernel_blc', sources = Split(sources), includes=Split(incs), defines=Split(defs), libtype=['player'],priority=[220] ) diff --git a/source/blenderplayer/bad_level_call_stubs/stubs.c b/source/blenderplayer/bad_level_call_stubs/stubs.c index 36068b01133..21443fba8b7 100644 --- a/source/blenderplayer/bad_level_call_stubs/stubs.c +++ b/source/blenderplayer/bad_level_call_stubs/stubs.c @@ -55,6 +55,10 @@ struct FCurve; struct Heap; struct HeapNode; struct ID; +#ifdef WITH_FREESTYLE +struct FreestyleConfig; +struct FreestyleLineSet; +#endif struct ImBuf; struct Image; struct ImageUser; @@ -83,6 +87,9 @@ struct RenderLayer; struct RenderResult; struct Scene; struct Scene; +#ifdef WITH_FREESTYLE +struct SceneRenderLayer; +#endif struct ScrArea; struct SculptSession; struct ShadeInput; @@ -534,6 +541,16 @@ struct PyObject *pyrna_id_CreatePyObject(struct ID *id) {return NULL; } void BPY_context_update(struct bContext *C) {}; const char *BPY_app_translations_py_pgettext(const char *msgctxt, const char *msgid) { return msgid; } +#ifdef WITH_FREESTYLE +/* Freestyle */ +void FRS_init_freestyle_config(struct FreestyleConfig *config) {} +void FRS_free_freestyle_config(struct FreestyleConfig *config) {} +void FRS_copy_freestyle_config(struct FreestyleConfig *new_config, struct FreestyleConfig *config) {} +struct FreestyleLineSet *FRS_get_active_lineset(struct FreestyleConfig *config) { return NULL; } +short FRS_get_active_lineset_index(struct FreestyleConfig *config) { return 0; } +void FRS_set_active_lineset_index(struct FreestyleConfig *config, short index) {} +void FRS_unlink_target_object(struct FreestyleConfig *config, struct Object *ob) {} +#endif /* intern/dualcon */ struct DualConMesh; struct DualConMesh *dualcon(const struct DualConMesh *input_mesh, |