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.
2 parents 7c77635 + cb599a7 commit dc91494Copy full SHA for dc91494
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