Initialize class variables with default values in scene/ [1/2]

This commit is contained in:
Rafał Mikrut
2021-02-07 22:29:31 +01:00
parent 57e2822a05
commit 003bb8e1a8
139 changed files with 871 additions and 1652 deletions

View File

@@ -94,20 +94,6 @@ static inline Vector2 interpolate(const Rect2 &r, const Vector2 &v) {
//----------------------------------------------------------------------------
LineBuilder::LineBuilder() {
joint_mode = Line2D::LINE_JOINT_SHARP;
width = 10;
curve = nullptr;
default_color = Color(0.4, 0.5, 1);
gradient = nullptr;
sharp_limit = 2.f;
round_precision = 8;
begin_cap_mode = Line2D::LINE_CAP_NONE;
end_cap_mode = Line2D::LINE_CAP_NONE;
tile_aspect = 1.f;
_interpolate_color = false;
_last_index[0] = 0;
_last_index[1] = 0;
}
void LineBuilder::clear_output() {