diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2010-04-01 02:49:59 +0400 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2010-04-01 02:49:59 +0400 |
commit | ea0e0b3f15852a062a0b6578f729d768e848f7d1 (patch) | |
tree | 6b0462d4d1e727cc598980d686a44086f14b5e75 /source/blenderplayer | |
parent | c19725b2667cfcec64135901ccb40b3c9ec37e00 (diff) |
BGE fix: Parenting the object to itself crashes BGE + stubs update
it may happen if you start doing exec, setParent, ... in Python
not a big deal, but to crash Blender is always bad
Diffstat (limited to 'source/blenderplayer')
-rw-r--r-- | source/blenderplayer/bad_level_call_stubs/stubs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blenderplayer/bad_level_call_stubs/stubs.c b/source/blenderplayer/bad_level_call_stubs/stubs.c index f4ac79841c6..f0d532f4356 100644 --- a/source/blenderplayer/bad_level_call_stubs/stubs.c +++ b/source/blenderplayer/bad_level_call_stubs/stubs.c @@ -186,6 +186,8 @@ int WM_keymap_item_compare(struct wmKeyMapItem *k1, struct wmKeyMapItem *k2){ret /* rna editors */ +int insert_vert_fcurve(struct FCurve *fcu, float x, float y, short flag){return 0;} +void delete_fcurve_key(struct FCurve *fcu, int index, short do_recalc){} struct KeyingSetInfo *ANIM_keyingset_info_find_named (const char name[]){return (struct KeyingSetInfo *) NULL;} struct KeyingSet *ANIM_scene_get_active_keyingset (struct Scene *scene){return (struct KeyingSet *) NULL;} int ANIM_scene_get_keyingset_index(struct Scene *scene, struct KeyingSet *ks){return 0;} |