Reset the sample when enabling looping

This commit is contained in:
Xerasin 2021-10-02 13:57:33 -07:00
parent 756dd3c172
commit 86fdb24332

View File

@ -597,8 +597,9 @@ do -- sample meta
end
else
for k,v in pairs(self.Samples) do
if not v.looping and IsValid(v.obj) then
if IsValid(v.obj) and not v.looping then
v.obj:EnableLooping(true)
v.obj:SetTime(0)
v.looping = true
end
end