Core: Readd Variant class initializer, fix comment

This commit is contained in:
Thaddeus Crews 2024-05-14 11:33:19 -05:00
parent 4971b71899
commit 7599a7b719
No known key found for this signature in database
GPG Key ID: 62181B86FE9E5D84

View File

@ -165,10 +165,12 @@ private:
friend struct _VariantCall; friend struct _VariantCall;
friend class VariantInternal; friend class VariantInternal;
// Variant takes 20 bytes when real_t is float, and 36 if double // Variant takes 24 bytes when real_t is float, and 40 bytes if double.
// it only allocates extra memory for aabb/matrix. // 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 { struct ObjData {
ObjectID id; ObjectID id;