1
0
Fork 0

Merge pull request #91955 from Repiteo/core/variant-class-initializer

Core: Readd Variant class initializer, fix comment
This commit is contained in:
Rémi Verschelde 2024-05-15 12:10:03 +02:00
commit 527bf78486
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 5 additions and 3 deletions

View File

@ -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;