From 2ccc5e08f2fe9a6bf63c14c9278bf84bb317d6d1 Mon Sep 17 00:00:00 2001 From: Erik Abair Date: Sun, 2 May 2021 15:35:21 -0700 Subject: [PATCH] Populates incorrect constants for Vector2 and 3 types. --- src/core/Vector2.cpp | 6 +++--- src/core/Vector3.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/Vector2.cpp b/src/core/Vector2.cpp index eeeeb856..f3d617a4 100644 --- a/src/core/Vector2.cpp +++ b/src/core/Vector2.cpp @@ -6,9 +6,9 @@ namespace godot { -const Vector2 Vector2::ZERO; -const Vector2 Vector2::ONE; -const Vector2 Vector2::INF; +const Vector2 Vector2::ZERO = Vector2(); +const Vector2 Vector2::ONE = Vector2(1, 1); +const Vector2 Vector2::INF = Vector2(INFINITY, INFINITY); const Vector2 Vector2::LEFT = Vector2(-1, 0); const Vector2 Vector2::RIGHT = Vector2(1, 0); diff --git a/src/core/Vector3.cpp b/src/core/Vector3.cpp index f4db4627..1088ea6e 100644 --- a/src/core/Vector3.cpp +++ b/src/core/Vector3.cpp @@ -9,7 +9,7 @@ namespace godot { const Vector3 Vector3::ZERO = Vector3(); -const Vector3 Vector3::ONE = Vector3(); +const Vector3 Vector3::ONE = Vector3(1, 1, 1); const Vector3 Vector3::INF = Vector3(INFINITY, INFINITY, INFINITY); const Vector3 Vector3::LEFT = Vector3(-1, 0, 0);