Daniele Bartolini 10 anos atrás
pai
commit
81f9ba77f8
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      src/core/json/json_parser.h

+ 3 - 3
src/core/json/json_parser.h

@@ -101,15 +101,15 @@ public:
 
 	/// Returns the Vector2 value of the element.
 	/// @note Vector2 = [x, y]
-	Vector2 to_vector2(const Vector2& def = vector2(0, 0)) const;
+	Vector2 to_vector2(const Vector2& def = VECTOR2_ZERO) const;
 
 	/// Returns the Vector3 value of the element.
 	/// @note Vector3 = [x, y, z]
-	Vector3 to_vector3(const Vector3& def = vector3(0, 0, 0)) const;
+	Vector3 to_vector3(const Vector3& def = VECTOR3_ZERO) const;
 
 	/// Returns the Vector4 value of the element.
 	/// @note Vector4 = [x, y, z, w]
-	Vector4 to_vector4(const Vector4& def = vector4(0, 0, 0, 0)) const;
+	Vector4 to_vector4(const Vector4& def = VECTOR4_ZERO) const;
 
 	/// Returns the Quaternion value of the element.
 	/// @note Quaternion = [x, y, z, w]