Fixed a case of broken loop due to wrapping on the edge, closes #25245
Fixed a case of broken loop due to wrapping on the edge, closes #25245

Paulloz/godot,groud/godot,okamstudio/godot,ex/godot,ex/godot,sanikoyes/godot,Faless/godot,ex/godot,godotengine/godot,ex/godot,sanikoyes/godot,vnen/godot,Shockblast/godot,vnen/godot,godotengine/godot,firefly2442/godot,groud/godot,Valentactive/godot,okamstudio/godot,firefly2442/godot,Valentactive/godot,Zylann/godot,sanikoyes/godot,DmitriySalnikov/godot,guilhermefelipecgs/godot,BastiaanOlij/godot,guilhermefelipecgs/godot,godotengine/godot,firefly2442/godot,Faless/godot,josempans/godot,akien-mga/godot,groud/godot,sanikoyes/godot,Zylann/godot,Shockblast/godot,akien-mga/godot,Zylann/godot,vnen/godot,sanikoyes/godot,BastiaanOlij/godot,okamstudio/godot,Zylann/godot,Paulloz/godot,akien-mga/godot,ZuBsPaCe/godot,groud/godot,ZuBsPaCe/godot,Valentactive/godot,vkbsb/godot,Zylann/godot,Paulloz/godot,akien-mga/godot,pkowal1982/godot,godotengine/godot,sanikoyes/godot,guilhermefelipecgs/godot,ex/godot,ZuBsPaCe/godot,firefly2442/godot,okamstudio/godot,DmitriySalnikov/godot,josempans/godot,okamstudio/godot,akien-mga/godot,sanikoyes/godot,josempans/godot,vkbsb/godot,Zylann/godot,Shockblast/godot,sanikoyes/godot,BastiaanOlij/godot,DmitriySalnikov/godot,Shockblast/godot,pkowal1982/godot,Paulloz/godot,okamstudio/godot,Shockblast/godot,Shockblast/godot,Faless/godot,vkbsb/godot,okamstudio/godot,Paulloz/godot,firefly2442/godot,pkowal1982/godot,Faless/godot,Valentactive/godot,DmitriySalnikov/godot,groud/godot,vnen/godot,vnen/godot,firefly2442/godot,guilhermefelipecgs/godot,akien-mga/godot,okamstudio/godot,Valentactive/godot,guilhermefelipecgs/godot,ZuBsPaCe/godot,okamstudio/godot,honix/godot,honix/godot,pkowal1982/godot,DmitriySalnikov/godot,guilhermefelipecgs/godot,MarianoGnu/godot,BastiaanOlij/godot,Shockblast/godot,vkbsb/godot,ZuBsPaCe/godot,akien-mga/godot,MarianoGnu/godot,BastiaanOlij/godot,josempans/godot,guilhermefelipecgs/godot,MarianoGnu/godot,vkbsb/godot,BastiaanOlij/godot,Faless/godot,Shockblast/godot,pkowal1982/godot,vnen/godot,DmitriySalnikov/godot,firefly2442/godot,ZuBsPaCe/godot,Valentactive/godot,godotengine/godot,guilhermefelipecgs/godot,Valentactive/godot,Faless/godot,Faless/godot,vkbsb/godot,godotengine/godot,BastiaanOlij/godot,godotengine/godot,Valentactive/godot,Faless/godot,Zylann/godot,DmitriySalnikov/godot,okamstudio/godot,MarianoGnu/godot,vkbsb/godot,akien-mga/godot,MarianoGnu/godot,BastiaanOlij/godot,vkbsb/godot,MarianoGnu/godot,pkowal1982/godot,josempans/godot,ZuBsPaCe/godot,ex/godot,Zylann/godot,ex/godot,Paulloz/godot,josempans/godot,honix/godot,pkowal1982/godot,vnen/godot,groud/godot,Paulloz/godot,honix/godot,vnen/godot,pkowal1982/godot,godotengine/godot,firefly2442/godot,ex/godot,honix/godot,josempans/godot,josempans/godot,MarianoGnu/godot,honix/godot,MarianoGnu/godot,ZuBsPaCe/godot