summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuri Sizov <11782833+YuriSizov@users.noreply.github.com>2023-03-25 13:49:12 +0100
committerGitHub <noreply@github.com>2023-03-25 13:49:12 +0100
commit553fd238cf744fda62ed9313ead74dda064bd67a (patch)
tree8f65d7a7d07e57cf99f59e14b727bdec2d773298
parent0291fcd7b66bcb315a49c44de8031e5596de4216 (diff)
parent574293532d50a6c39ee28451681452543ff1d2ca (diff)
downloadredot-engine-553fd238cf744fda62ed9313ead74dda064bd67a.tar.gz
Merge pull request #73897 from TheSecondReal0/camera-line-width
Draw Camera2D outlines as 2 point primitives instead of 4 (consistent with how origin is drawn in 2D editor)
-rw-r--r--scene/2d/camera_2d.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/2d/camera_2d.cpp b/scene/2d/camera_2d.cpp
index fdd709c3cb..48445496aa 100644
--- a/scene/2d/camera_2d.cpp
+++ b/scene/2d/camera_2d.cpp
@@ -278,7 +278,7 @@ void Camera2D::_notification(int p_what) {
if (screen_drawing_enabled) {
Color area_axis_color(1, 0.4, 1, 0.63);
- real_t area_axis_width = 1;
+ real_t area_axis_width = -1;
if (is_current()) {
area_axis_width = 3;
}
@@ -302,7 +302,7 @@ void Camera2D::_notification(int p_what) {
if (limit_drawing_enabled) {
Color limit_drawing_color(1, 1, 0.25, 0.63);
- real_t limit_drawing_width = 1;
+ real_t limit_drawing_width = -1;
if (is_current()) {
limit_drawing_width = 3;
}
@@ -323,7 +323,7 @@ void Camera2D::_notification(int p_what) {
if (margin_drawing_enabled) {
Color margin_drawing_color(0.25, 1, 1, 0.63);
- real_t margin_drawing_width = 1;
+ real_t margin_drawing_width = -1;
if (is_current()) {
margin_drawing_width = 3;
}