File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ static inline Tex2F v2ToTex2F(const Vec2 &v)
47
47
48
48
DrawNode::DrawNode (float lineWidth)
49
49
: _lineWidth(lineWidth)
50
+ , _defaultLineWidth(lineWidth)
50
51
{
51
52
_blendFunc = BlendFunc::ALPHA_PREMULTIPLIED;
52
53
#if CC_ENABLE_CACHE_TEXTURE_DATA
@@ -732,7 +733,7 @@ void DrawNode::clear()
732
733
_dirtyGLLine = true ;
733
734
_bufferCountGLPoint = 0 ;
734
735
_dirtyGLPoint = true ;
735
- _lineWidth = 0 ;
736
+ _lineWidth = _defaultLineWidth ;
736
737
}
737
738
738
739
const BlendFunc& DrawNode::getBlendFunc () const
Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ class CC_DLL DrawNode : public Node
349
349
bool _dirtyGLLine = false ;
350
350
bool _isolated = false ;
351
351
float _lineWidth = 0 .0f ;
352
-
352
+ float _defaultLineWidth = 0 . 0f ;
353
353
private:
354
354
CC_DISALLOW_COPY_AND_ASSIGN (DrawNode);
355
355
};
You can’t perform that action at this time.
0 commit comments