Merge pull request #63617 from KoBeWi/v3c70r4

This commit is contained in:
Rémi Verschelde 2022-07-29 12:45:18 +02:00 committed by GitHub
commit cd24fb848e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 11 deletions

View file

@ -1575,11 +1575,11 @@ Error VariantWriter::write(const Variant &p_variant, StoreStringFunc p_store_str
} break;
case Variant::VECTOR4: {
Vector4 v = p_variant;
p_store_string_func(p_store_string_ud, "Vector4(" + rtos_fix(v.x) + ", " + rtos_fix(v.y) + ", " + rtos_fix(v.z) + ")");
p_store_string_func(p_store_string_ud, "Vector4(" + rtos_fix(v.x) + ", " + rtos_fix(v.y) + ", " + rtos_fix(v.z) + ", " + rtos_fix(v.w) + ")");
} break;
case Variant::VECTOR4I: {
Vector4i v = p_variant;
p_store_string_func(p_store_string_ud, "Vector4i(" + itos(v.x) + ", " + itos(v.y) + ", " + itos(v.z) + ")");
p_store_string_func(p_store_string_ud, "Vector4i(" + itos(v.x) + ", " + itos(v.y) + ", " + itos(v.z) + ", " + itos(v.w) + ")");
} break;
case Variant::PLANE: {
Plane p = p_variant;

View file

@ -211,13 +211,13 @@
</method>
</methods>
<members>
<member name="w" type="Vector4" setter="" getter="" default="Vector4(0, 0, 0)">
<member name="w" type="Vector4" setter="" getter="" default="Vector4(0, 0, 0, 1)">
</member>
<member name="x" type="Vector4" setter="" getter="" default="Vector4(1, 0, 0)">
<member name="x" type="Vector4" setter="" getter="" default="Vector4(1, 0, 0, 0)">
</member>
<member name="y" type="Vector4" setter="" getter="" default="Vector4(0, 1, 0)">
<member name="y" type="Vector4" setter="" getter="" default="Vector4(0, 1, 0, 0)">
</member>
<member name="z" type="Vector4" setter="" getter="" default="Vector4(0, 0, 1)">
<member name="z" type="Vector4" setter="" getter="" default="Vector4(0, 0, 1, 0)">
</member>
</members>
<constants>

View file

@ -173,13 +173,13 @@
<constant name="AXIS_W" value="3">
Enumerated value for the W axis. Returned by [method max_axis_index] and [method min_axis_index].
</constant>
<constant name="ZERO" value="Vector4(0, 0, 0)">
<constant name="ZERO" value="Vector4(0, 0, 0, 0)">
Zero vector, a vector with all components set to [code]0[/code].
</constant>
<constant name="ONE" value="Vector4(1, 1, 1)">
<constant name="ONE" value="Vector4(1, 1, 1, 1)">
One vector, a vector with all components set to [code]1[/code].
</constant>
<constant name="INF" value="Vector4(inf, inf, inf)">
<constant name="INF" value="Vector4(inf, inf, inf, inf)">
Infinity vector, a vector with all components set to [constant @GDScript.INF].
</constant>
</constants>

View file

@ -92,9 +92,9 @@
</constant>
<constant name="AXIS_W" value="3">
</constant>
<constant name="ZERO" value="Vector4i(0, 0, 0)">
<constant name="ZERO" value="Vector4i(0, 0, 0, 0)">
</constant>
<constant name="ONE" value="Vector4i(1, 1, 1)">
<constant name="ONE" value="Vector4i(1, 1, 1, 1)">
</constant>
</constants>
<operators>