diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-02-08 09:31:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-08 09:31:08 +0100 |
commit | cea42faa77d72cdbea8ab7c38936e7c8722900d0 (patch) | |
tree | 3c7f54d3b3e6d355a2ffb14933e0b5461478b224 /scene/2d/line_2d.cpp | |
parent | 57e2822a05c29db3980ad243c37a34acf6c4d14b (diff) | |
parent | 003bb8e1a8c9bb81e3cb0733b3f0d569b1518881 (diff) |
Merge pull request #44630 from qarmin/cppcheck_scene_1
Initialize class variables with default values in scene/ [1/2]
Diffstat (limited to 'scene/2d/line_2d.cpp')
-rw-r--r-- | scene/2d/line_2d.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/scene/2d/line_2d.cpp b/scene/2d/line_2d.cpp index 0a3f5673f8..2959ea1a36 100644 --- a/scene/2d/line_2d.cpp +++ b/scene/2d/line_2d.cpp @@ -40,15 +40,6 @@ VARIANT_ENUM_CAST(Line2D::LineCapMode) VARIANT_ENUM_CAST(Line2D::LineTextureMode) Line2D::Line2D() { - _joint_mode = LINE_JOINT_SHARP; - _begin_cap_mode = LINE_CAP_NONE; - _end_cap_mode = LINE_CAP_NONE; - _width = 10; - _default_color = Color(1, 1, 1); - _texture_mode = LINE_TEXTURE_NONE; - _sharp_limit = 2.f; - _round_precision = 8; - _antialiased = false; } #ifdef TOOLS_ENABLED |