mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-21 05:06:29 +00:00
Fix security permission error (#619)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user