Added additional delay to objects unlocking after texture change
This commit is contained in:
parent
30c2a596be
commit
bc5d13c1b4
@ -1341,9 +1341,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…
x
Reference in New Issue
Block a user