This commit is contained in:
Nikita Kruglickiy 2021-03-20 18:19:52 +06:00
parent 0327e468d4
commit 20bd0f06d5
2 changed files with 8 additions and 4 deletions

View File

@ -21,6 +21,7 @@ function MeshBuilder:initialize(link)
net.receive("holograms", function()
local hasNext = net.readBit()
local test = {}
while hasNext == 1 do
local name = net.readString()
@ -28,14 +29,17 @@ function MeshBuilder:initialize(link)
local holo = ent:toHologram()
table.insert(self._objects, {name = name, holo = holo})
table.insert(test, {name = name, holo = holo})
end)
hasNext = net.readBit()
end
timer.simple(0, function()
self:onHologramsReceived(self._objects)
self:_applyMeshes()
end)
end)
end
function MeshBuilder:_applyMeshes()

View File

@ -7,7 +7,7 @@ local function setStatus(status)
end
function ObjParser:initialize(link, maxQuota)
self.maxQuota = maxQuota or 0.75
self.maxQuota = maxQuota or 0.5
local triangles = mesh.trianglesLeft()