Skip to content

Commit

Permalink
Remove the JSB checking in setEntityLocalOpacityDirtyRecursively func…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
yoki0805 committed Oct 12, 2024
1 parent efada88 commit 60e0f7a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cocos/2d/components/ui-opacity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,7 @@ export class UIOpacity extends Component {
// there is a just UIRenderer but no UIOpacity on the node, we should just transport the parentOpacity to the node.
render.renderEntity.localOpacity = parentOpacity;
}
if (JSB) {
render.node._uiProps.localOpacity = render.renderEntity.localOpacity;
}
render.node._uiProps.localOpacity = render.renderEntity.localOpacity;
//No need for recursion here. Because it doesn't affect the capacity of the child nodes.
return;
}
Expand Down

0 comments on commit 60e0f7a

Please sign in to comment.