summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2021-02-23 13:56:28 -0300
committerGeorge Marques <george@gmarqu.es>2021-02-23 13:56:28 -0300
commitf1088e1b70962799c2e0f7de8f8b0dcf850569a8 (patch)
treef3d538a815f018d2a15a836e145d32d5c93ff328
parent50d71e7f2a889afd3cbf5673582b7f98d8037bac (diff)
downloadredot-engine-f1088e1b70962799c2e0f7de8f8b0dcf850569a8.tar.gz
Bind ClockDirection enum
It's the only enum in math_defs.h not bound, and it's used by Plane.
-rw-r--r--core/core_constants.cpp3
-rw-r--r--core/variant/binder_common.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/core/core_constants.cpp b/core/core_constants.cpp
index ef5dbf17bb..f9edff1899 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 9d8e262cc9..490bd45b7b 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);