File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/components/Plugins/src/scripting Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -81,10 +81,17 @@ std::string SerializeExportData(std::vector<std::any> data)
8181 document.PushBack (rapidjson::Value ().SetBool (std::any_cast<bool >(value)), document.GetAllocator ());
8282 else if (value.type () == typeid (float ))
8383 document.PushBack (rapidjson::Value ().SetFloat (std::any_cast<float >(value)), document.GetAllocator ());
84+ else if (value.type () == typeid (long long ))
85+ document.PushBack (rapidjson::Value ().SetInt64 (std::any_cast<long long >(value)), document.GetAllocator ());
86+ else if (value.type () == typeid (unsigned long long ))
87+ document.PushBack (rapidjson::Value ().SetUint64 (std::any_cast<unsigned long long >(value)), document.GetAllocator ());
8488 else if (value.type () == typeid (double ))
8589 document.PushBack (rapidjson::Value ().SetDouble (std::any_cast<double >(value)), document.GetAllocator ());
8690 else
91+ {
92+ PRINTF (" SerializeExportData" , " Invalid type: %s\n " , value.type ().name ());
8793 document.PushBack (rapidjson::Value ().SetNull (), document.GetAllocator ());
94+ }
8895 }
8996
9097 rapidjson::StringBuffer buffer;
You can’t perform that action at this time.
0 commit comments