Merge pull request #822 from argonui/texture-delay

Added additional delay to objects unlocking after texture change
This commit is contained in:
dscarpac 2024-08-15 10:20:32 -05:00 committed by GitHub
commit 7ab4e85e8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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