Added additional delay to objects unlocking after texture change

This commit is contained in:
Chr1Z93 2024-08-15 16:47:38 +02:00
parent 30c2a596be
commit bc5d13c1b4

View File

@ -1341,9 +1341,11 @@ function updateTexture(overrideName)
-- unlock objects when mat is reloaded
Wait.condition(function()
for _, obj in ipairs(objectsToUnlock) do
obj.setLock(false)
end
Wait.frames(function()
for _, obj in ipairs(objectsToUnlock) do
obj.setLock(false)
end
end, 5)
end, function() return reloadedMat.loading_custom == false end)
end
end