summaryrefslogtreecommitdiffstats
path: root/core/variant
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-05-14 11:33:19 -0500
committerThaddeus Crews <repiteo@outlook.com>2024-05-14 12:20:40 -0500
commit7599a7b719ff84f82ecc0820cb61040167d54b89 (patch)
treeb2e84d8bdb0cca76f4b811ea8e25d996c34693d1 /core/variant
parent4971b71899ada7b65496ac71c591414b303ae437 (diff)
downloadredot-engine-7599a7b719ff84f82ecc0820cb61040167d54b89.tar.gz
Core: Readd Variant class initializer, fix comment
Diffstat (limited to 'core/variant')
-rw-r--r--core/variant/variant.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/variant/variant.h b/core/variant/variant.h
index 6494313722..f352af24da 100644
--- a/core/variant/variant.h
+++ b/core/variant/variant.h
@@ -165,10 +165,12 @@ private:
friend struct _VariantCall;
friend class VariantInternal;
- // Variant takes 20 bytes when real_t is float, and 36 if double
- // it only allocates extra memory for aabb/matrix.
+ // Variant takes 24 bytes when real_t is float, and 40 bytes if double.
+ // It only allocates extra memory for AABB/Transform2D (24, 48 if double),
+ // Basis/Transform3D (48, 96 if double), Projection (64, 128 if double),
+ // and PackedArray/Array/Dictionary (platform-dependent).
- Type type;
+ Type type = NIL;
struct ObjData {
ObjectID id;