From 517fd3c76c81450e3967ffc1df5f7b90c1a7d94c Mon Sep 17 00:00:00 2001 From: Bengt Rosenberger Date: Fri, 22 Jul 2022 01:07:42 +0200 Subject: [PATCH] Added missing member copy in gltf2::ExtrasValue ctor. --- code/AssetLib/glTF2/glTF2Asset.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/code/AssetLib/glTF2/glTF2Asset.h b/code/AssetLib/glTF2/glTF2Asset.h index bdc62dbc2..064634e40 100644 --- a/code/AssetLib/glTF2/glTF2Asset.h +++ b/code/AssetLib/glTF2/glTF2Asset.h @@ -376,9 +376,7 @@ struct CustomExtension { } }; -struct ExtrasValue; - -//! Represents a union of metadata values +//! Represents a union of metadata values. Only one nullable is supposed to be set. struct ExtrasValue { std::string name; @@ -396,6 +394,7 @@ struct ExtrasValue { ExtrasValue(const ExtrasValue& other) : name(other.name), mStringValue(other.mStringValue), + mFloatValue(other.mFloatValue), mDoubleValue(other.mDoubleValue), mUint64Value(other.mUint64Value), mInt32Value(other.mInt32Value), @@ -404,7 +403,7 @@ struct ExtrasValue { } }; -//! Represents metadata in an glTF object +//! Represents metadata in an glTF2 object struct Extras { std::vector mValues;