diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2020-12-21 00:24:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-21 00:24:36 +0100 |
commit | 153c132a7e7e7cea00c420b93257f3ebd56cf2dc (patch) | |
tree | a14a01cd3a431673b819165b47179e82c78b0386 /scene/2d/node_2d.h | |
parent | 5f7c88ab4eb7d05e1c83ab1773cc184d376dfcc0 (diff) | |
parent | 31cb04fbdda17b1321504faa0f1e2b2c510be7e5 (diff) |
Merge pull request #44300 from KoBeWi/🧹🧹
Move initialization of some classes to headers
Diffstat (limited to 'scene/2d/node_2d.h')
-rw-r--r-- | scene/2d/node_2d.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scene/2d/node_2d.h b/scene/2d/node_2d.h index e20f746447..a66e7f625d 100644 --- a/scene/2d/node_2d.h +++ b/scene/2d/node_2d.h @@ -37,15 +37,15 @@ class Node2D : public CanvasItem { GDCLASS(Node2D, CanvasItem); Point2 pos; - float angle; - Size2 _scale; - float skew; - int z_index; - bool z_relative; + float angle = 0; + Size2 _scale = Vector2(1, 1); + float skew = 0; + int z_index = 0; + bool z_relative = true; Transform2D _mat; - bool _xform_dirty; + bool _xform_dirty = false; void _update_transform(); @@ -121,7 +121,7 @@ public: Transform2D get_transform() const override; - Node2D(); + Node2D() {} }; #endif // NODE2D_H |