Add typecasts in glTFAssetWriter.inl to fix compile errors about ambiguous constructors, see: <https://github.com/assimp/assimp/issues/980>
parent
cc16d4a0db
commit
e9ecd6f8a7
|
@ -105,7 +105,7 @@ namespace glTF {
|
|||
type = "arraybuffer";
|
||||
}
|
||||
|
||||
obj.AddMember("byteLength", b.byteLength, w.mAl);
|
||||
obj.AddMember("byteLength", (uint64_t)b.byteLength, w.mAl);
|
||||
obj.AddMember("type", StringRef(type), w.mAl);
|
||||
obj.AddMember("uri", Value(dataURI, w.mAl).Move(), w.mAl);
|
||||
}
|
||||
|
@ -113,8 +113,8 @@ namespace glTF {
|
|||
inline void Write(Value& obj, BufferView& bv, AssetWriter& w)
|
||||
{
|
||||
obj.AddMember("buffer", Value(bv.buffer->id, w.mAl).Move(), w.mAl);
|
||||
obj.AddMember("byteOffset", bv.byteOffset, w.mAl);
|
||||
obj.AddMember("byteLength", bv.byteLength, w.mAl);
|
||||
obj.AddMember("byteOffset", (uint64_t)bv.byteOffset, w.mAl);
|
||||
obj.AddMember("byteLength", (uint64_t)bv.byteLength, w.mAl);
|
||||
obj.AddMember("target", int(bv.target), w.mAl);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue