diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-07-08 16:49:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-08 16:49:09 +0200 |
commit | 697805af54f3d25195617a513e18ec3a4f9fe0c6 (patch) | |
tree | e25437dc20403880e8998aa0d519b7f3fe315764 /servers/rendering/renderer_canvas_cull.h | |
parent | 787fd7e4d0c55c4ff4947a98ee24d593bd62b048 (diff) | |
parent | f514b82fd375388c35d280335b51d6544979215b (diff) |
Merge pull request #62837 from xentripetal/master
Account for relative z-indexes when y-sorting
Diffstat (limited to 'servers/rendering/renderer_canvas_cull.h')
-rw-r--r-- | servers/rendering/renderer_canvas_cull.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/rendering/renderer_canvas_cull.h b/servers/rendering/renderer_canvas_cull.h index 963cca7630..48d0598c9f 100644 --- a/servers/rendering/renderer_canvas_cull.h +++ b/servers/rendering/renderer_canvas_cull.h @@ -53,6 +53,7 @@ public: Transform2D ysort_xform; Vector2 ysort_pos; int ysort_index; + int ysort_parent_abs_z_index; // Absolute Z index of parent. Only populated and used when y-sorting. Vector<Item *> child_items; @@ -84,6 +85,7 @@ public: ysort_xform = Transform2D(); ysort_pos = Vector2(); ysort_index = 0; + ysort_parent_abs_z_index = 0; } }; |