diff --git a/code/AssetLib/glTF/glTFCommon.h b/code/AssetLib/glTF/glTFCommon.h index edc3c7e03..db25e2172 100644 --- a/code/AssetLib/glTF/glTFCommon.h +++ b/code/AssetLib/glTF/glTFCommon.h @@ -245,9 +245,12 @@ struct Nullable { Nullable() : isPresent(false) {} - Nullable(T &val) : + Nullable(const T &val) : value(val), isPresent(true) {} + Nullable(T &&val) : + value(std::move(val)), + isPresent(true) {} }; //! A reference to one top-level object, which is valid