Merge "Quick fix: Make incorrect animator usage a warning" into oc-mr1-dev
This commit is contained in:
@@ -71,9 +71,11 @@ void AnimatorManager::setAnimationHandle(AnimationHandle* handle) {
|
|||||||
|
|
||||||
void AnimatorManager::pushStaging() {
|
void AnimatorManager::pushStaging() {
|
||||||
if (mNewAnimators.size()) {
|
if (mNewAnimators.size()) {
|
||||||
LOG_ALWAYS_FATAL_IF(!mAnimationHandle,
|
if (CC_UNLIKELY(!mAnimationHandle)) {
|
||||||
"Trying to start new animators on %p (%s) without an animation handle!",
|
ALOGW("Trying to start new animators on %p (%s) without an animation handle!",
|
||||||
&mParent, mParent.getName());
|
&mParent, mParent.getName());
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Only add new animators that are not already in the mAnimators list
|
// Only add new animators that are not already in the mAnimators list
|
||||||
for (auto& anim : mNewAnimators) {
|
for (auto& anim : mNewAnimators) {
|
||||||
|
|||||||
Reference in New Issue
Block a user