Fix another missing move in glTFCommon.h

pull/4785/head
Aaron Gokaslan 2022-11-07 09:34:00 -05:00
parent 899f8e1d17
commit 5a0df03d2b
1 changed files with 4 additions and 1 deletions

View File

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