Use correct XmlParser-methods and add some missing casts

This commit is contained in:
Kim Kulling
2021-12-13 18:06:23 +01:00
parent 052594568a
commit cb657e4c13
5 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -1410,7 +1410,7 @@ void glTF2Exporter::ExportMetadata() {
}
}
inline Ref<Accessor> GetSamplerInputRef(Asset &asset, std::string &animId, Ref<Buffer> &buffer, std::vector<float> &times) {
inline Ref<Accessor> GetSamplerInputRef(Asset &asset, std::string &animId, Ref<Buffer> &buffer, std::vector<ai_real> &times) {
return ExportData(asset, animId, buffer, (unsigned int)times.size(), &times[0], AttribType::SCALAR, AttribType::SCALAR, ComponentType_FLOAT);
}