diff --git a/core/variant/variant_construct.cpp b/core/variant/variant_construct.cpp index 3a0b6c1bb96..d048f457376 100644 --- a/core/variant/variant_construct.cpp +++ b/core/variant/variant_construct.cpp @@ -162,6 +162,7 @@ void Variant::_register_variant_constructors() { add_constructor>(sarray()); add_constructor>(sarray("from")); add_constructor>(sarray("from")); + add_constructor>(sarray("x_axis", "y_axis", "z_axis", "w_axis")); add_constructor>(sarray()); add_constructor>(sarray("from")); diff --git a/doc/classes/Projection.xml b/doc/classes/Projection.xml index b8f6e54d872..5690ea5e95b 100644 --- a/doc/classes/Projection.xml +++ b/doc/classes/Projection.xml @@ -24,6 +24,16 @@ + + + + + + + + Constructs a Projection from four [Vector4] values (matrix columns). + +