diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-12-17 11:32:14 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-12-17 11:32:14 +0300 |
commit | 793d7b1eb9ea7c84324727844ba179959174ea6a (patch) | |
tree | 66ffdd10038a3b728d647ebe5da5d642d4291c1b /source | |
parent | de073e74d105ffe9e9ab30974e47ad530a43cefe (diff) |
More BPyAPI compiling fixes again.
* Added missing stubs so that blenderplayer can be linked.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/BKE_bad_level_calls.h | 8 | ||||
-rw-r--r-- | source/blender/blenkernel/bad_level_call_stubs/stubs.c | 9 |
2 files changed, 16 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_bad_level_calls.h b/source/blender/blenkernel/BKE_bad_level_calls.h index 8b9454f1a9d..ca563bbbaa3 100644 --- a/source/blender/blenkernel/BKE_bad_level_calls.h +++ b/source/blender/blenkernel/BKE_bad_level_calls.h @@ -66,6 +66,8 @@ struct Object; 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,7 +80,11 @@ int BPY_button_eval(char *expr, double *value); /* 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; diff --git a/source/blender/blenkernel/bad_level_call_stubs/stubs.c b/source/blender/blenkernel/bad_level_call_stubs/stubs.c index 55931b50462..25c4f099743 100644 --- a/source/blender/blenkernel/bad_level_call_stubs/stubs.c +++ b/source/blender/blenkernel/bad_level_call_stubs/stubs.c @@ -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_eval(struct bPythonConstraint *con, struct bConstraintOb * 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 */ |