bugfix for UI animation playing crash if GUI JSON file is loaded again.
Merge pull request #8174 from lite3/v3

fix compile error when CC_SPRITE_DEBUG_DRAW
Merge pull request #8167 from hongliang-goudou/v3

bugfix for UI animation playing crash if GUI JSON file is loaded again.