mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
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:
1 parent
fa762f808e
commit
5c05f9befe
1 file changed
+3
-1
@@ -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(
|
||||||
|
|||||||
Reference in new issue
Block a user