clearing playarea "missingData" table when highlighting
This commit is contained in:
parent
94deae2848
commit
33750606d0
@ -602,13 +602,15 @@ end
|
|||||||
-- highlights all locations in the play area without metadata
|
-- highlights all locations in the play area without metadata
|
||||||
---@param state Boolean True if highlighting should be enabled
|
---@param state Boolean True if highlighting should be enabled
|
||||||
function highlightMissingData(state)
|
function highlightMissingData(state)
|
||||||
for _, obj in pairs(missingData) do
|
for i, obj in pairs(missingData) do
|
||||||
if obj ~= nil then
|
if obj ~= nil then
|
||||||
if state then
|
if state then
|
||||||
obj.highlightOff("Red")
|
obj.highlightOff("Red")
|
||||||
else
|
else
|
||||||
obj.highlightOn("Red")
|
obj.highlightOn("Red")
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
missingData[i] = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user