From f3899e21a52867dbcec37ca66c0e129908096471 Mon Sep 17 00:00:00 2001 From: FangQiJun Date: Tue, 1 Aug 2023 01:39:57 +0800 Subject: [PATCH] fix(blocks): boolean variable block wrong shape for zelos (#7335) * fix(blocks): boolean variable block wrong shape for zelos * fixup! fix(blocks): boolean variable block wrong shape for zelos --- core/rendered_connection.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/core/rendered_connection.ts b/core/rendered_connection.ts index f6a606279..4d358eae9 100644 --- a/core/rendered_connection.ts +++ b/core/rendered_connection.ts @@ -625,6 +625,22 @@ export class RenderedConnection extends Connection { this.sourceBlock_.bumpNeighbours(); } } + + /** + * Change a connection's compatibility. + * Rerender blocks as needed. + * + * @param check Compatible value type or list of value types. Null if all + * types are compatible. + * @returns The connection being modified (to allow chaining). + */ + override setCheck(check: string | string[] | null): RenderedConnection { + super.setCheck(check); + if (this.sourceBlock_.rendered) { + this.sourceBlock_.queueRender(); + } + return this; + } } export namespace RenderedConnection {