Fixed interpolation callbacks.

--HG--
branch : dev
This commit is contained in:
Martín Lucas Golini
2017-07-25 21:52:21 -03:00
parent e79df67ea3
commit 7a30adcb9b
2 changed files with 6 additions and 2 deletions

View File

@@ -153,7 +153,9 @@ void Interpolation1d::update( const Time& Elapsed ) {
if ( mOnPathEndCallback.IsSet() ) {
mOnPathEndCallback();
mOnPathEndCallback.Reset();
if ( !mEnable )
mOnPathEndCallback.Reset();
}
return;
}

View File

@@ -169,7 +169,9 @@ void Interpolation2d::update( const Time& Elapsed ) {
if ( mOnPathEndCallback.IsSet() ) {
mOnPathEndCallback();
mOnPathEndCallback.Reset();
if ( !mEnable )
mOnPathEndCallback.Reset();
}
return;
}