summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-05-15 12:10:03 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-05-15 12:10:03 +0200
commit527bf784866a7d53de3feb161e8ebdf7dc02c767 (patch)
treefaaa7170cb4fc5b1d035734dc46ac83276496cb9 /core
parent44833c79955d22e9f3f0a5b2fe659fc6c07fc8f3 (diff)
parent7599a7b719ff84f82ecc0820cb61040167d54b89 (diff)
downloadredot-engine-527bf784866a7d53de3feb161e8ebdf7dc02c767.tar.gz
Merge pull request #91955 from Repiteo/core/variant-class-initializer
Core: Readd Variant class initializer, fix comment
Diffstat (limited to 'core')
-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;