From f1088e1b70962799c2e0f7de8f8b0dcf850569a8 Mon Sep 17 00:00:00 2001 From: George Marques Date: Tue, 23 Feb 2021 13:56:28 -0300 Subject: [PATCH] Bind ClockDirection enum It's the only enum in math_defs.h not bound, and it's used by Plane. --- core/core_constants.cpp | 3 +++ core/variant/binder_common.h | 1 + 2 files changed, 4 insertions(+) diff --git a/core/core_constants.cpp b/core/core_constants.cpp index ef5dbf17bb5..f9edff18992 100644 --- a/core/core_constants.cpp +++ b/core/core_constants.cpp @@ -125,6 +125,9 @@ void register_global_constants() { BIND_CORE_ENUM_CONSTANT(VERTICAL); BIND_CORE_ENUM_CONSTANT(HORIZONTAL); + BIND_CORE_ENUM_CONSTANT(CLOCKWISE); + BIND_CORE_ENUM_CONSTANT(COUNTERCLOCKWISE); + BIND_CORE_ENUM_CONSTANT(HALIGN_LEFT); BIND_CORE_ENUM_CONSTANT(HALIGN_CENTER); BIND_CORE_ENUM_CONSTANT(HALIGN_RIGHT); diff --git a/core/variant/binder_common.h b/core/variant/binder_common.h index 9d8e262cc98..490bd45b7b1 100644 --- a/core/variant/binder_common.h +++ b/core/variant/binder_common.h @@ -88,6 +88,7 @@ VARIANT_ENUM_CAST(Vector3::Axis); VARIANT_ENUM_CAST(Error); VARIANT_ENUM_CAST(Side); +VARIANT_ENUM_CAST(ClockDirection); VARIANT_ENUM_CAST(Corner); VARIANT_ENUM_CAST(Orientation); VARIANT_ENUM_CAST(HAlign);