diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-10-16 09:06:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-16 09:06:34 +0200 |
commit | 90a1e5193366e57069951cf2703616248e5f515d (patch) | |
tree | 4efb789ff3d5673c38dc439eb91127870183f392 /core/variant/variant_construct.cpp | |
parent | 96410f55b24e47af045e3ad31545331ce124d999 (diff) | |
parent | b4eeeb315a74682d299c7ec1555ce06a9dc2641a (diff) |
Merge pull request #37842 from MennoMax/plane-constructor
Swap args of Plane(point, normal) constructor
Diffstat (limited to 'core/variant/variant_construct.cpp')
-rw-r--r-- | core/variant/variant_construct.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/variant/variant_construct.cpp b/core/variant/variant_construct.cpp index 4317b9dc98..6aba7d7d58 100644 --- a/core/variant/variant_construct.cpp +++ b/core/variant/variant_construct.cpp @@ -119,8 +119,9 @@ void Variant::_register_variant_constructors() { add_constructor<VariantConstructNoArgs<Plane>>(sarray()); add_constructor<VariantConstructor<Plane, Plane>>(sarray("from")); + add_constructor<VariantConstructor<Plane, Vector3>>(sarray("normal")); add_constructor<VariantConstructor<Plane, Vector3, double>>(sarray("normal", "d")); - add_constructor<VariantConstructor<Plane, Vector3, Vector3>>(sarray("point", "normal")); + add_constructor<VariantConstructor<Plane, Vector3, Vector3>>(sarray("normal", "point")); add_constructor<VariantConstructor<Plane, Vector3, Vector3, Vector3>>(sarray("point1", "point2", "point3")); add_constructor<VariantConstructor<Plane, double, double, double, double>>(sarray("a", "b", "c", "d")); |