mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
Fixed interpolation callbacks.
--HG-- branch : dev
This commit is contained in:
@@ -153,7 +153,9 @@ void Interpolation1d::update( const Time& Elapsed ) {
|
||||
|
||||
if ( mOnPathEndCallback.IsSet() ) {
|
||||
mOnPathEndCallback();
|
||||
mOnPathEndCallback.Reset();
|
||||
|
||||
if ( !mEnable )
|
||||
mOnPathEndCallback.Reset();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -169,7 +169,9 @@ void Interpolation2d::update( const Time& Elapsed ) {
|
||||
|
||||
if ( mOnPathEndCallback.IsSet() ) {
|
||||
mOnPathEndCallback();
|
||||
mOnPathEndCallback.Reset();
|
||||
|
||||
if ( !mEnable )
|
||||
mOnPathEndCallback.Reset();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user