[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12920] trunk/blender/source/blender: More BPyAPI compiling fixes again.
Joshua Leung
aligorith at gmail.com
Mon Dec 17 09:32:14 CET 2007
Revision: 12920
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12920
Author: aligorith
Date: 2007-12-17 09:32:14 +0100 (Mon, 17 Dec 2007)
Log Message:
-----------
More BPyAPI compiling fixes again.
* Added missing stubs so that blenderplayer can be linked.
Modified Paths:
--------------
trunk/blender/source/blender/blenkernel/BKE_bad_level_calls.h
trunk/blender/source/blender/blenkernel/bad_level_call_stubs/stubs.c
trunk/blender/source/blender/python/BPY_extern.h
Modified: trunk/blender/source/blender/blenkernel/BKE_bad_level_calls.h
===================================================================
--- trunk/blender/source/blender/blenkernel/BKE_bad_level_calls.h 2007-12-17 06:45:50 UTC (rev 12919)
+++ trunk/blender/source/blender/blenkernel/BKE_bad_level_calls.h 2007-12-17 08:32:14 UTC (rev 12920)
@@ -66,6 +66,8 @@
struct bPythonConstraint;
struct bConstraintOb;
struct bConstraintTarget;
+
+
void BPY_do_pyscript (struct ID *id, short int event);
void BPY_clear_script (struct Script *script);
void BPY_free_compiled_text (struct Text *text);
@@ -78,8 +80,12 @@
/* pyconstraints */
void BPY_pyconstraint_eval(struct bPythonConstraint *con, struct bConstraintOb *cob, struct ListBase *targets);
void BPY_pyconstraint_targets(struct bPythonConstraint *con, struct bConstraintTarget *ct);
+/* py id-hash */
+void BPY_idhash_add(void * value);
+void *BPY_idhash_get(struct ID *id);
+void BPY_idhash_remove(struct ID *id);
+void BPY_idhash_invalidate(struct ID *id);
-
/* writefile.c */
struct Oops;
void free_oops(struct Oops *oops);
Modified: trunk/blender/source/blender/blenkernel/bad_level_call_stubs/stubs.c
===================================================================
--- trunk/blender/source/blender/blenkernel/bad_level_call_stubs/stubs.c 2007-12-17 06:45:50 UTC (rev 12919)
+++ trunk/blender/source/blender/blenkernel/bad_level_call_stubs/stubs.c 2007-12-17 08:32:14 UTC (rev 12920)
@@ -37,6 +37,7 @@
#include "BKE_bad_level_calls.h"
#include "BLI_blenlib.h"
#include "BPI_script.h"
+#include "DNA_ID.h"
#include "DNA_texture_types.h"
#include "DNA_material_types.h"
#include "DNA_node_types.h"
@@ -136,6 +137,14 @@
void BPY_pyconstraint_target(struct bPythonConstraint *con, struct bConstraintTarget *ct)
{
}
+/* Py ID Hash*/
+void BPY_idhash_add(void *value){}
+void *BPY_idhash_get(ID *id){}
+void BPY_idhash_remove(ID *id)
+{
+ return 0;
+}
+void BPY_idhash_invalidate(ID *id){}
/* writefile.c */
Modified: trunk/blender/source/blender/python/BPY_extern.h
===================================================================
--- trunk/blender/source/blender/python/BPY_extern.h 2007-12-17 06:45:50 UTC (rev 12919)
+++ trunk/blender/source/blender/python/BPY_extern.h 2007-12-17 08:32:14 UTC (rev 12920)
@@ -130,10 +130,10 @@
void BPY_free_finished_script( struct Script *script );
/* tell python were removing this ID so python can NULL the pointers */
- void BPY_idhash_add(void * value);
- void *BPY_idhash_get(ID *id);
- void BPY_idhash_remove(ID *id);
- void BPY_idhash_invalidate(ID *id);
+ void BPY_idhash_add(void *value);
+ void *BPY_idhash_get(struct ID *id);
+ void BPY_idhash_remove(struct ID *id);
+ void BPY_idhash_invalidate(struct ID *id);
/* void BPY_Err_Handle(struct Text *text); */
/* void BPY_clear_bad_scriptlink(struct ID *id, struct Text *byebye); */
More information about the Bf-blender-cvs
mailing list