diff options
Diffstat (limited to 'source/gameengine/Converter/KX_BlenderScalarInterpolator.cpp')
-rw-r--r-- | source/gameengine/Converter/KX_BlenderScalarInterpolator.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/gameengine/Converter/KX_BlenderScalarInterpolator.cpp b/source/gameengine/Converter/KX_BlenderScalarInterpolator.cpp index 37960e5c2f7..f020aab4d50 100644 --- a/source/gameengine/Converter/KX_BlenderScalarInterpolator.cpp +++ b/source/gameengine/Converter/KX_BlenderScalarInterpolator.cpp @@ -49,11 +49,11 @@ float BL_ScalarInterpolator::GetValue(float currentTime) const BL_InterpolatorList::BL_InterpolatorList(bAction *action) { - if(action==NULL) + if (action==NULL) return; - for(FCurve *fcu= (FCurve *)action->curves.first; fcu; fcu= (FCurve *)fcu->next) { - if(fcu->rna_path) { + for (FCurve *fcu= (FCurve *)action->curves.first; fcu; fcu= (FCurve *)fcu->next) { + if (fcu->rna_path) { BL_ScalarInterpolator *new_ipo = new BL_ScalarInterpolator(fcu); //assert(new_ipo); push_back(new_ipo); @@ -71,10 +71,10 @@ BL_InterpolatorList::~BL_InterpolatorList() KX_IScalarInterpolator *BL_InterpolatorList::GetScalarInterpolator(const char *rna_path, int array_index) { - for(BL_InterpolatorList::iterator i = begin(); (i != end()) ; i++ ) + for (BL_InterpolatorList::iterator i = begin(); (i != end()) ; i++ ) { FCurve *fcu= (static_cast<BL_ScalarInterpolator *>(*i))->GetFCurve(); - if(array_index==fcu->array_index && strcmp(rna_path, fcu->rna_path)==0) + if (array_index==fcu->array_index && strcmp(rna_path, fcu->rna_path)==0) return *i; } return NULL; |