diff options
author | Tomasz Chabora <kobewi4e@gmail.com> | 2020-12-11 15:54:03 +0100 |
---|---|---|
committer | Tomasz Chabora <kobewi4e@gmail.com> | 2020-12-11 18:20:03 +0100 |
commit | 31cb04fbdda17b1321504faa0f1e2b2c510be7e5 (patch) | |
tree | 5c86701926efb2e60f394d2a31f2d985117b74d5 /scene/2d/node_2d.h | |
parent | 146316c4413004a1062e559f092dd30456e9bc93 (diff) | |
download | redot-engine-31cb04fbdda17b1321504faa0f1e2b2c510be7e5.tar.gz |
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 |