Skip to content

Commit

Permalink
fix(blocks): boolean variable block wrong shape for zelos (#7335)
Browse files Browse the repository at this point in the history
* fix(blocks): boolean variable block wrong shape for zelos

* fixup! fix(blocks): boolean variable block wrong shape for zelos
  • Loading branch information
zfangqijun authored Jul 31, 2023
1 parent 8893107 commit f3899e2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions core/rendered_connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f3899e2

Please sign in to comment.