365365
366366local selectedNode = nil
367367local function addDTreeNode (parentNode , nodeData , specialType , isRoot , varType , luaState )
368- local nodeKey = nodeData .key
368+ local nodeKey = tostring ( nodeData .key )
369369 local nodeValue = nodeData .value
370370 local dataType = type (nodeValue )
371371 local visualDataType = dataType
@@ -388,7 +388,7 @@ local function addDTreeNode(parentNode, nodeData, specialType, isRoot, varType,
388388 end
389389
390390 if visualDataType == " table" then
391- childNode = useParent :AddNode (nodeKey )
391+ childNode = useParent :AddNode (istable ( nodeValue ) and nodeValue . displayName or nodeKey )
392392 childNode .Icon :SetImage (specialType && " icon16/folder_database.png" || " icon16/folder.png" )
393393
394394 childNode .oldExpand = childNode .SetExpanded
@@ -450,7 +450,7 @@ local function addDTreeNode(parentNode, nodeData, specialType, isRoot, varType,
450450 nodeText = nodeValue .name or nodeKey
451451 end
452452
453- childNode = useParent :AddNode (nodeText )
453+ childNode = useParent :AddNode (istable ( nodeValue ) and nodeValue . displayName or nodeText )
454454 childNode .Icon :SetImage (" icon16/" .. (blobsProfiler .TypesToIcon [visualDataType ] || " page_white_text" ) .. " .png" )
455455
456456 childNode .DoClick = function ()
@@ -1251,7 +1251,7 @@ net.Receive("blobsProfiler:requestData", function()
12511251
12521252 if # blobsProfiler .chunkModuleData [moduleName ].receivedChunks == totalChunks then
12531253 local fullData = table.concat (blobsProfiler .chunkModuleData [moduleName ].receivedChunks )
1254- blobsProfiler .chunkModuleData [moduleName ] = util .JSONToTable (util .Decompress (fullData ))
1254+ blobsProfiler .chunkModuleData [moduleName ] = util .JSONToTable (util .Decompress (fullData ), false , true )
12551255
12561256 handleSVDataUpdate (moduleName , blobsProfiler .chunkModuleData [moduleName ])
12571257
0 commit comments