ArmatureAnimation *ArmatureAnimation::create(Armature *armature) { ArmatureAnimation *pArmatureAnimation = new (std::nothrow) ArmatureAnimation(); if (pArmatureAnimation && pArmatureAnimation->init(armature)) { pArmatureAnimation->autorelease(); return pArmatureAnimation; } CC_SAFE_DELETE(pArmatureAnimation); return nullptr; }
ArmatureAnimation *ArmatureAnimation::create(Armature *armature) { ArmatureAnimation *pArmatureAnimation = new ArmatureAnimation(); if (pArmatureAnimation && pArmatureAnimation->init(armature)) { pArmatureAnimation->autorelease(); return pArmatureAnimation; } CC_SAFE_DELETE(pArmatureAnimation); return NULL; }