summaryrefslogtreecommitdiff
path: root/core/variant/variant_internal.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-10-25 20:42:45 +0200
committerGitHub <noreply@github.com>2021-10-25 20:42:45 +0200
commitd98a6363fa39f5187be69be39cb337bdf2b67c86 (patch)
tree2a5c2f43eee28b45506dadda32a4d3ea3ac8bb31 /core/variant/variant_internal.h
parent8911d6ecc85a96042d6fff6d22f63a2d00b4d877 (diff)
parentd03b7fbe090dca1f9ea4190116ac0efbee37e929 (diff)
Merge pull request #54084 from reduz/node3d-rotation-options
Diffstat (limited to 'core/variant/variant_internal.h')
-rw-r--r--core/variant/variant_internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/variant/variant_internal.h b/core/variant/variant_internal.h
index 37383ff2ec..2ba24b5af8 100644
--- a/core/variant/variant_internal.h
+++ b/core/variant/variant_internal.h
@@ -757,6 +757,12 @@ VARIANT_ACCESSOR_NUMBER(Error)
VARIANT_ACCESSOR_NUMBER(Side)
template <>
+struct VariantInternalAccessor<Basis::EulerOrder> {
+ static _FORCE_INLINE_ Basis::EulerOrder get(const Variant *v) { return Basis::EulerOrder(*VariantInternal::get_int(v)); }
+ static _FORCE_INLINE_ void set(Variant *v, Basis::EulerOrder p_value) { *VariantInternal::get_int(v) = p_value; }
+};
+
+template <>
struct VariantInternalAccessor<ObjectID> {
static _FORCE_INLINE_ ObjectID get(const Variant *v) { return ObjectID(*VariantInternal::get_int(v)); }
static _FORCE_INLINE_ void set(Variant *v, ObjectID p_value) { *VariantInternal::get_int(v) = p_value; }