From 59fb670bc8459d18dc5bce691643daf5d58c564a Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 17 Apr 2022 03:25:22 +0200 Subject: [PATCH] or to || --- modules/paint/paint_canvas.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/paint/paint_canvas.cpp b/modules/paint/paint_canvas.cpp index f6c03c7c0..ef26b951f 100644 --- a/modules/paint/paint_canvas.cpp +++ b/modules/paint/paint_canvas.cpp @@ -226,7 +226,7 @@ Ref PaintCanvas::remove_layer(const String &layer_name) { ERR_CONTINUE(!layer.is_valid()); - if (layer == preview_layer or layer == active_layer or layer == tool_layer) { + if (layer == preview_layer || layer == active_layer || layer == tool_layer) { continue; } @@ -344,7 +344,7 @@ void PaintCanvas::_on_mouse_exited() { mouse_on_top = false; } bool PaintCanvas::is_inside_canvas(const int x, const int y) { - if (x < 0 or y < 0) { + if (x < 0 || y < 0) { return false; } if (x >= _canvas_width || y >= _canvas_height) {