remove bpy python api from blenderplayer, it was being linked but not initialized...
authorCampbell Barton <ideasman42@gmail.com>
Thu, 31 Mar 2011 15:28:53 +0000 (15:28 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 31 Mar 2011 15:28:53 +0000 (15:28 +0000)
source/blender/python/SConscript
source/blenderplayer/CMakeLists.txt
source/blenderplayer/bad_level_call_stubs/stubs.c

index 30cd5a842caea76ab7d77f0b5c8e41f11c8aec60..de6b859d259c7013c15f370518ed8eb6abbec8dd 100644 (file)
@@ -34,4 +34,4 @@ if env['BF_BUILDINFO']:
     defs.append('BUILD_DATE')
 
 sources = env.Glob('intern/*.c')
-env.BlenderLib( libname = 'bf_python', sources = Split(sources), includes = Split(incs), defines = defs, libtype = ['core','player'], priority = [361,160])
+env.BlenderLib( libname = 'bf_python', sources = Split(sources), includes = Split(incs), defines = defs, libtype = ['core'], priority = [361])
index beda933a91d833a23476d04fc83b0c8f421fba32..a4d3e1b13fccbb7c9f51018bea830f354a5854c1 100644 (file)
@@ -99,7 +99,6 @@ if(UNIX)
                extern_bullet 
                bf_intern_guardedalloc 
                bf_intern_memutil 
-               bf_python
                bf_python_ext
                bf_blenlib 
                bf_imbuf_cineon
index c1581e1f8f3d294720edac489810f8ac878f0c98..728557bc99bf8376994a1dae56e9a115713d3639 100644 (file)
@@ -92,9 +92,16 @@ struct wmEvent;
 struct wmKeyConfig;
 struct wmKeyMap;
 struct wmOperator;
+struct wmWindow;
 struct wmWindowManager;
 struct View3D;
 struct ToolSettings;
+struct bContextDataResult;
+struct bConstraintTarget;
+struct bPythonConstraint;
+struct bConstraintOb;
+struct Context;
+struct ChannelDriver;
 
 
 /*new render funcs */
@@ -402,6 +409,19 @@ float sculpt_get_brush_alpha(struct Brush *brush){return 0.0f;}
 void sculpt_set_brush_alpha(struct Brush *brush, float alpha){}
 void ED_sculpt_modifiers_changed(struct Object *ob){};
 
+
+/* bpy/python internal api */
+void operator_wrapper(struct wmOperatorType *ot, void *userdata) {}
+void BPY_text_free_code(struct Text *text) {}
+void BPY_id_release(struct Text *text) {}
+int BPY_context_member_get(struct Context *C, const char *member, struct bContextDataResult *result) { return 0; }
+void BPY_pyconstraint_target(struct bPythonConstraint *con, struct bConstraintTarget *ct) {}
+float BPY_driver_exec(struct ChannelDriver *driver) {return 0.0f;} /* might need this one! */
+void   BPY_DECREF(void *pyob_ptr) {}
+void BPY_pyconstraint_exec(struct bPythonConstraint *con, struct bConstraintOb *cob, struct ListBase *targets) {}
+void macro_wrapper(struct wmOperatorType *ot, void *userdata) {} ;
+
+
 char blender_path[] = "";
 
 #endif // WITH_GAMEENGINE