diff options
| author | Jerome67000 | 2017-12-29 23:06:03 +0100 |
|---|---|---|
| committer | Jérôme | 2018-01-03 13:02:26 +0100 |
| commit | 42ae3525a3adfc9518361aab5625d7ff76e97623 (patch) | |
| tree | 0b993bd9d2b174be583f83400bc115a651815806 /scene/2d/node_2d.h | |
| parent | 99960d929435423b25e9bfb55051af60edbfcca9 (diff) | |
| download | godot-42ae3525a3adfc9518361aab5625d7ff76e97623.tar.gz godot-42ae3525a3adfc9518361aab5625d7ff76e97623.tar.zst godot-42ae3525a3adfc9518361aab5625d7ff76e97623.zip | |
#15078 renamed "z" -> "z_index" property in Node2D
Diffstat (limited to 'scene/2d/node_2d.h')
| -rw-r--r-- | scene/2d/node_2d.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/2d/node_2d.h b/scene/2d/node_2d.h index e1e07f289..83bac928a 100644 --- a/scene/2d/node_2d.h +++ b/scene/2d/node_2d.h @@ -39,7 +39,7 @@ class Node2D : public CanvasItem { Point2 pos; float angle; Size2 _scale; - int z; + int z_index; bool z_relative; Transform2D _mat; @@ -96,8 +96,8 @@ public: void set_global_rotation_degrees(float p_degrees); void set_global_scale(const Size2 &p_scale); - void set_z(int p_z); - int get_z() const; + void set_z_index(int p_z); + int get_z_index() const; void look_at(const Vector2 &p_pos); float get_angle_to(const Vector2 &p_pos) const; |
