Gui Control markAsDirty wrong signature

Just a small typo I’ve found
in Babylon.js/control.ts at master · BabylonJS/Babylon.js · GitHub
it says

public markAsDirty(force: false): void {
        this._markAsDirty(force);
}

Here the parameter type is false, instead of boolean, which would only allow it to be false.

I think it should in fact look something like this:

public markAsDirty(force: boolean = false): void {
        this._markAsDirty(force);
}
1 Like

Thanks a lot for the report !!! Tiny fix on GUI dirty signature by sebavan · Pull Request #12167 · BabylonJS/Babylon.js · GitHub

1 Like

Sure, no problem :slight_smile:

1 Like