mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Fix security permission error (#619)
This commit is contained in:
parent
4cb49c7825
commit
142705f386
1 changed files with 5 additions and 1 deletions
|
|
@ -115,9 +115,13 @@ local function diff(instanceMap, virtualInstances, rootId)
|
|||
local childId = instanceMap.fromInstances[childInstance]
|
||||
|
||||
if childId == nil then
|
||||
if childInstance.Archivable == false then
|
||||
-- pcall to avoid security permission errors
|
||||
local success, skip = pcall(function()
|
||||
-- We don't remove instances that aren't going to be saved anyway,
|
||||
-- such as the Rojo session lock value.
|
||||
return childInstance.Archivable == false
|
||||
end)
|
||||
if success and skip then
|
||||
continue
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue