Removed Transform::needsTransition()
Transform::updateTransitions() already checks if there is a callback to update transitions.
This commit is contained in:
@@ -377,10 +377,6 @@ void Transform::startTransition(std::function<Update(double)> frame,
|
||||
transitionFinishFn = finish;
|
||||
}
|
||||
|
||||
bool Transform::needsTransition() const {
|
||||
return !!transitionFrameFn;
|
||||
}
|
||||
|
||||
UpdateType Transform::updateTransitions(const TimePoint& now) {
|
||||
return static_cast<UpdateType>(transitionFrameFn ? transitionFrameFn(now) : Update::Nothing);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user