mirror of https://github.com/axmolengine/axmol.git
clclosed #5369: Fix wrong logic when setTarget to Effect3D
This commit is contained in:
parent
453ff81d2a
commit
e59813476a
|
@ -348,7 +348,7 @@ void Effect3DOutline::setOutlineWidth(float width)
|
||||||
|
|
||||||
void Effect3DOutline::setTarget(EffectSprite3D *sprite)
|
void Effect3DOutline::setTarget(EffectSprite3D *sprite)
|
||||||
{
|
{
|
||||||
CCASSERT(nullptr != sprite || nullptr != sprite->getMesh(),"Error: Setting a null pointer or a null mesh EffectSprite3D to Effect3D");
|
CCASSERT(nullptr != sprite && nullptr != sprite->getMesh(),"Error: Setting a null pointer or a null mesh EffectSprite3D to Effect3D");
|
||||||
|
|
||||||
if(sprite != _sprite)
|
if(sprite != _sprite)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue