These are chat archives for highfidelity/hifi
Please join us at our official forum: https://forums.highfidelity.com/c/development High Fidelity is an open source virtual world platform. We are building the software with a mix of full-time developers, part time developers who are paid on worklist.net, and open source collaborators. As use of the virtual world grows, Worklist will also host paid projects run by other teams. https://worklist.net
Does anybody know about the following: there is a QJsonObject that is visible to the scripting environment that I can read. However updating it seems tricky, according to some things I've read -- https://stackoverflow.com/questions/17034336/how-to-change-qjsonobject-value-in-a-qjson-hierarchy-without-using-copies and https://forum.qt.io/topic/25096/modify-nested-qjsonvalue/6
Apparently when you try to get a reference to some subobject inside of a QJsonObject it doesn't work because when you walk a JSON tree, you really aren't getting references to the keys and values of the subobjects, you are just given the values of the keys and values. Therefore, according to what I read, the only way to update some property of a subobject inside the QJsonObject is to replace the whole thing (which apparently runs into some pretty nasty memory issues).
Does anybody know if this is correct, and if it is, is there some other way to pull this off, that won't kill the memory?
p.s. the QJsonObject in question is the Render object.