Skip to content
Snippets Groups Projects
Commit ada4e7ae authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Avoid extra copy during GLTF material parse

parent d84aad17
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
...@@ -333,8 +333,7 @@ namespace ...@@ -333,8 +333,7 @@ namespace
void LLGLTFMaterialList::applyOverrideMessage(LLMessageSystem* msg, const std::string& data_in) void LLGLTFMaterialList::applyOverrideMessage(LLMessageSystem* msg, const std::string& data_in)
{ {
std::istringstream str(data_in); boost::iostreams::stream<boost::iostreams::array_source> str(data_in.data(), data_in.size());
LLSD data; LLSD data;
LLSDSerialize::fromNotation(data, str, data_in.length()); LLSDSerialize::fromNotation(data, str, data_in.length());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment