aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/canvas_item_editor_plugin.h
diff options
context:
space:
mode:
authorJerome670002017-12-29 23:06:03 +0100
committerJérôme2018-01-03 13:02:26 +0100
commit42ae3525a3adfc9518361aab5625d7ff76e97623 (patch)
tree0b993bd9d2b174be583f83400bc115a651815806 /editor/plugins/canvas_item_editor_plugin.h
parent99960d929435423b25e9bfb55051af60edbfcca9 (diff)
downloadgodot-42ae3525a3adfc9518361aab5625d7ff76e97623.tar.gz
godot-42ae3525a3adfc9518361aab5625d7ff76e97623.tar.zst
godot-42ae3525a3adfc9518361aab5625d7ff76e97623.zip
#15078 renamed "z" -> "z_index" property in Node2D
Diffstat (limited to 'editor/plugins/canvas_item_editor_plugin.h')
-rw-r--r--editor/plugins/canvas_item_editor_plugin.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.h b/editor/plugins/canvas_item_editor_plugin.h
index 4be09a16e..c45a90669 100644
--- a/editor/plugins/canvas_item_editor_plugin.h
+++ b/editor/plugins/canvas_item_editor_plugin.h
@@ -252,10 +252,10 @@ class CanvasItemEditor : public VBoxContainer {
struct _SelectResult {
CanvasItem *item;
- float z;
+ float z_index;
bool has_z;
_FORCE_INLINE_ bool operator<(const _SelectResult &p_rr) const {
- return has_z && p_rr.has_z ? p_rr.z < z : p_rr.has_z;
+ return has_z && p_rr.has_z ? p_rr.z_index < z_index : p_rr.has_z;
}
};