diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2010-09-01 12:09:23 +0400 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2010-09-01 12:09:23 +0400 |
commit | e5b9ad3817a348cd8e34e073dd0f0497f8d58b1d (patch) | |
tree | 415ebc99b1b62b06a3340c6dc336489289b75b29 /source/blender | |
parent | 94d4ff6423d7568eccd1af99f6e456a082a0da92 (diff) |
Added missing ID_NEW() in set_sca_new_poins_ob() as pointed out by Dalai.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/sca.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/sca.c b/source/blender/blenkernel/intern/sca.c index f5ca7ee3cef..12f82d041f9 100644 --- a/source/blender/blenkernel/intern/sca.c +++ b/source/blender/blenkernel/intern/sca.c @@ -572,9 +572,22 @@ void set_sca_new_poins_ob(Object *ob) bObjectActuator *oa= act->data; ID_NEW(oa->reference); } - else if(act->type==ACT_SCENE) { - bSceneActuator *sca= act->data; - ID_NEW(sca->camera); + else if(act->type==ACT_MESSAGE) { + bMessageActuator *ma= act->data; + ID_NEW(ma->toObject); + } + else if(act->type==ACT_PARENT) { + bParentActuator *para = act->data; + ID_NEW(para->ob); + } + else if(act->type==ACT_ARMATURE) { + bArmatureActuator *aa = act->data; + ID_NEW(aa->target); + ID_NEW(aa->subtarget); + } + else if(act->type==ACT_PROPERTY) { + bPropertyActuator *pa= act->data; + ID_NEW(pa->ob); } } act= act->next; |