mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-25 07:06:12 +00:00
Fix preloading assets in plugin (#819)
`gatherAssetUrlsRecursive` now returns asset URLs deeper than one layer.
This commit is contained in:
@@ -13,7 +13,7 @@ function gatherAssetUrlsRecursive(currentTable, currentUrls)
|
|||||||
if typeof(value) == "string" then
|
if typeof(value) == "string" then
|
||||||
table.insert(currentUrls, value)
|
table.insert(currentUrls, value)
|
||||||
elseif typeof(value) == "table" then
|
elseif typeof(value) == "table" then
|
||||||
gatherAssetUrlsRecursive(value)
|
gatherAssetUrlsRecursive(value, currentUrls)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user