Merge pull request #2395 from TransformAndLighting/master
added casts for rapidjson in gltf asset writer, converted std::to_string to internal to_string in fbx.pull/2397/head^2
commit
933fe5eb43
|
@ -432,7 +432,7 @@ void FBX::Node::WritePropertyNodeAscii(
|
||||||
char buffer[32];
|
char buffer[32];
|
||||||
FBX::Node node(name);
|
FBX::Node node(name);
|
||||||
node.Begin(s, false, indent);
|
node.Begin(s, false, indent);
|
||||||
std::string vsize = std::to_string(v.size());
|
std::string vsize = to_string(v.size());
|
||||||
// *<size> {
|
// *<size> {
|
||||||
s.PutChar('*'); s.PutString(vsize); s.PutString(" {\n");
|
s.PutChar('*'); s.PutString(vsize); s.PutString(" {\n");
|
||||||
// indent + 1
|
// indent + 1
|
||||||
|
@ -468,7 +468,7 @@ void FBX::Node::WritePropertyNodeAscii(
|
||||||
char buffer[32];
|
char buffer[32];
|
||||||
FBX::Node node(name);
|
FBX::Node node(name);
|
||||||
node.Begin(s, false, indent);
|
node.Begin(s, false, indent);
|
||||||
std::string vsize = std::to_string(v.size());
|
std::string vsize = to_string(v.size());
|
||||||
// *<size> {
|
// *<size> {
|
||||||
s.PutChar('*'); s.PutString(vsize); s.PutString(" {\n");
|
s.PutChar('*'); s.PutString(vsize); s.PutString(" {\n");
|
||||||
// indent + 1
|
// indent + 1
|
||||||
|
|
|
@ -294,17 +294,17 @@ namespace glTF {
|
||||||
// filling object "compressedData"
|
// filling object "compressedData"
|
||||||
json_comp_data.SetObject();
|
json_comp_data.SetObject();
|
||||||
json_comp_data.AddMember("buffer", ptr_ext_comp->Buffer, w.mAl);
|
json_comp_data.AddMember("buffer", ptr_ext_comp->Buffer, w.mAl);
|
||||||
json_comp_data.AddMember("byteOffset", ptr_ext_comp->Offset, w.mAl);
|
json_comp_data.AddMember("byteOffset", static_cast<uint64_t>(ptr_ext_comp->Offset), w.mAl);
|
||||||
json_comp_data.AddMember("componentType", 5121, w.mAl);
|
json_comp_data.AddMember("componentType", 5121, w.mAl);
|
||||||
json_comp_data.AddMember("type", "SCALAR", w.mAl);
|
json_comp_data.AddMember("type", "SCALAR", w.mAl);
|
||||||
json_comp_data.AddMember("count", ptr_ext_comp->Count, w.mAl);
|
json_comp_data.AddMember("count", static_cast<uint64_t>(ptr_ext_comp->Count), w.mAl);
|
||||||
if(ptr_ext_comp->Binary)
|
if(ptr_ext_comp->Binary)
|
||||||
json_comp_data.AddMember("mode", "binary", w.mAl);
|
json_comp_data.AddMember("mode", "binary", w.mAl);
|
||||||
else
|
else
|
||||||
json_comp_data.AddMember("mode", "ascii", w.mAl);
|
json_comp_data.AddMember("mode", "ascii", w.mAl);
|
||||||
|
|
||||||
json_comp_data.AddMember("indicesCount", ptr_ext_comp->IndicesCount, w.mAl);
|
json_comp_data.AddMember("indicesCount", static_cast<uint64_t>(ptr_ext_comp->IndicesCount), w.mAl);
|
||||||
json_comp_data.AddMember("verticesCount", ptr_ext_comp->VerticesCount, w.mAl);
|
json_comp_data.AddMember("verticesCount", static_cast<uint64_t>(ptr_ext_comp->VerticesCount), w.mAl);
|
||||||
// filling object "Open3DGC-compression"
|
// filling object "Open3DGC-compression"
|
||||||
Value json_o3dgc;
|
Value json_o3dgc;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue