Wait for both ends of the unturned draped fill in the rotation check

A draped fill can reach the pick pass tile by tile, so the far end of the
wide rectangle was sometimes not pickable yet in the frame the centre was.
This commit is contained in:
Sameh Khamis committed 2026-11-08 09:45:47 -08:00
1 parent fa762f808e
commit 5c05f9befe
1 file changed
+3 -1
+3 -1
View File
@@ -1489,8 +1489,10 @@ export function portChecks() {
return false; return false;
}; };
shapes.set([overlay(undefined)]); shapes.set([overlay(undefined)]);
// A draped fill can reach the pick pass tile by tile, so wait for
// both ends, as the turned case below waits for its own.
ok(await until(() => mine(at(0))), 'unturned, it draws'); ok(await until(() => mine(at(0))), 'unturned, it draws');
ok(mine(at(0.003)), 'unturned, it is wide'); ok(await until(() => mine(at(0.003))), 'unturned, it is wide');
ok(!mine(at(0, 0.003)), 'unturned, it is not tall'); ok(!mine(at(0, 0.003)), 'unturned, it is not tall');
shapes.set([overlay(Math.PI / 2)]); shapes.set([overlay(Math.PI / 2)]);
ok( ok(