Skip to content

Commit

Permalink
Core: Readd Variant class initializer, fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Repiteo committed May 14, 2024
1 parent 4971b71 commit 7599a7b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/variant/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,12 @@ class Variant {

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;
Expand Down

0 comments on commit 7599a7b

Please sign in to comment.