Fixes
This commit is contained in:
parent
0327e468d4
commit
20bd0f06d5
@ -21,6 +21,7 @@ function MeshBuilder:initialize(link)
|
|||||||
net.receive("holograms", function()
|
net.receive("holograms", function()
|
||||||
local hasNext = net.readBit()
|
local hasNext = net.readBit()
|
||||||
|
|
||||||
|
local test = {}
|
||||||
while hasNext == 1 do
|
while hasNext == 1 do
|
||||||
local name = net.readString()
|
local name = net.readString()
|
||||||
|
|
||||||
@ -28,13 +29,16 @@ function MeshBuilder:initialize(link)
|
|||||||
local holo = ent:toHologram()
|
local holo = ent:toHologram()
|
||||||
|
|
||||||
table.insert(self._objects, {name = name, holo = holo})
|
table.insert(self._objects, {name = name, holo = holo})
|
||||||
|
table.insert(test, {name = name, holo = holo})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
hasNext = net.readBit()
|
hasNext = net.readBit()
|
||||||
end
|
end
|
||||||
|
|
||||||
self:onHologramsReceived(self._objects)
|
timer.simple(0, function()
|
||||||
self:_applyMeshes()
|
self:onHologramsReceived(self._objects)
|
||||||
|
self:_applyMeshes()
|
||||||
|
end)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -7,7 +7,7 @@ local function setStatus(status)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function ObjParser:initialize(link, maxQuota)
|
function ObjParser:initialize(link, maxQuota)
|
||||||
self.maxQuota = maxQuota or 0.75
|
self.maxQuota = maxQuota or 0.5
|
||||||
|
|
||||||
local triangles = mesh.trianglesLeft()
|
local triangles = mesh.trianglesLeft()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user