diff options
-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 */ |