creator c++ support bug fixes (#17051)

I need these 2 changes applied to v3.14 in order to
support C++ correctly in Creator.

Thanks!
This commit is contained in:
Ricardo Quesada 2016-12-21 00:17:32 -08:00 committed by minggo
parent 9e57d6b7d4
commit c4a20a032f
2 changed files with 2 additions and 1 deletions

View File

@ -688,6 +688,7 @@ void Sprite::setCenterRectNormalized(const cocos2d::Rect &rectTopLeft)
updateStretchFactor(); updateStretchFactor();
updatePoly(); updatePoly();
updateColor();
} }
} }

View File

@ -627,7 +627,7 @@ CC_CONSTRUCTOR_ACCESS :
protected: protected:
void updateColor() override; virtual void updateColor() override;
virtual void setTextureCoords(const Rect& rect); virtual void setTextureCoords(const Rect& rect);
virtual void setTextureCoords(const Rect& rect, V3F_C4B_T2F_Quad* outQuad); virtual void setTextureCoords(const Rect& rect, V3F_C4B_T2F_Quad* outQuad);
virtual void setVertexCoords(const Rect& rect, V3F_C4B_T2F_Quad* outQuad); virtual void setVertexCoords(const Rect& rect, V3F_C4B_T2F_Quad* outQuad);