mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 01:02:23 +00:00
fix(conformance): draw.models.parts waits for frames, not a settled scene, while a part spins
This commit is contained in:
1 parent
dbe632b51f
commit
7ea0903fe2
1 file changed
+5
-2
@@ -4284,13 +4284,16 @@ export function portChecks() {
|
||||
ok(pickedAt(armAt(forward)), 'and stays ahead');
|
||||
}
|
||||
|
||||
await show(
|
||||
// A spinning part asks for frames for as long as it spins, so the
|
||||
// scene never settles; wait for frames to be drawn instead.
|
||||
set.upsert([
|
||||
model('m', {
|
||||
spin: { pod: 90 },
|
||||
deploy: { pod: 1, missing: 1 },
|
||||
poses: { pod: { highlight: true }, missing: { hidden: true } },
|
||||
}),
|
||||
);
|
||||
]);
|
||||
await drawn(h, r, 3);
|
||||
if (picks) ok(pickedAt(pos), 'spinning and highlighted, where it is');
|
||||
await show(model('m'));
|
||||
if (picks) ok(pickedAt(pos), 'back at rest');
|
||||
|
||||
Reference in new issue
Block a user