mirror of https://github.com/axmolengine/axmol.git
commit
39650e12c4
|
@ -341,7 +341,6 @@ Effect3DOutline::Effect3DOutline()
|
||||||
|
|
||||||
Effect3DOutline::~Effect3DOutline()
|
Effect3DOutline::~Effect3DOutline()
|
||||||
{
|
{
|
||||||
CC_SAFE_RELEASE_NULL(_sprite);
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
||||||
Director::getInstance()->getEventDispatcher()->removeEventListener(_backToForegroundListener);
|
Director::getInstance()->getEventDispatcher()->removeEventListener(_backToForegroundListener);
|
||||||
#endif
|
#endif
|
||||||
|
@ -371,8 +370,6 @@ void Effect3DOutline::setTarget(EffectSprite3D *sprite)
|
||||||
|
|
||||||
if(sprite != _sprite)
|
if(sprite != _sprite)
|
||||||
{
|
{
|
||||||
CC_SAFE_RETAIN(sprite);
|
|
||||||
CC_SAFE_RELEASE_NULL(_sprite);
|
|
||||||
_sprite = sprite;
|
_sprite = sprite;
|
||||||
|
|
||||||
auto mesh = sprite->getMesh();
|
auto mesh = sprite->getMesh();
|
||||||
|
|
|
@ -103,6 +103,7 @@ protected:
|
||||||
|
|
||||||
Vec3 _outlineColor;
|
Vec3 _outlineColor;
|
||||||
float _outlineWidth;
|
float _outlineWidth;
|
||||||
|
//weak reference
|
||||||
EffectSprite3D* _sprite;
|
EffectSprite3D* _sprite;
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
||||||
EventListenerCustom* _backToForegroundListener;
|
EventListenerCustom* _backToForegroundListener;
|
||||||
|
|
Loading…
Reference in New Issue