Merge pull request #822 from argonui/texture-delay
Added additional delay to objects unlocking after texture change
This commit is contained in:
commit
7ab4e85e8a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user