BGE: allow action blending by bringing back blend_poses() as game_blend_poses, the...
[blender.git] / source / gameengine / Converter / KX_BlenderScalarInterpolator.cpp
index 20829524558ec8e180b594d186b243b66fbea22e..c3264a2bc37403667483772f57ffd9d1a0ba4ec4 100644 (file)
@@ -43,6 +43,9 @@ float BL_ScalarInterpolator::GetValue(float currentTime) const {
 }
 
 BL_InterpolatorList::BL_InterpolatorList(struct AnimData *adt) {
+       if(adt->action==NULL)
+               return;
+       
        for(FCurve *fcu= (FCurve *)adt->action->curves.first; fcu; fcu= (FCurve *)fcu->next) {
                if(fcu->rna_path) {
                        BL_ScalarInterpolator *new_ipo = new BL_ScalarInterpolator(fcu);