We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c77635 commit cb599a7Copy full SHA for cb599a7
src/core/CoreNode.ts
@@ -1148,7 +1148,7 @@ export class CoreNode extends EventEmitter {
1148
}
1149
1150
if (updateType & UpdateType.WorldAlpha) {
1151
- this.worldAlpha = ((parent && parent.worldAlpha) || 1) * props.alpha;
+ this.worldAlpha = (parent?.worldAlpha ?? 1) * this.props.alpha;
1152
updateType |=
1153
UpdateType.PremultipliedColors |
1154
UpdateType.Children |
0 commit comments