Skip to content

Commit

Permalink
fix: update texture and material in TextComponentBase
Browse files Browse the repository at this point in the history
  • Loading branch information
Sruimeng committed Feb 7, 2025
1 parent 21e2e58 commit f3af2ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/effects-core/src/plugins/text/text-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ export class TextComponentBase {
);

this.renderer.texture = texture;
this.material.setTexture('_MainTex', texture);

this.isDirty = false;
}
Expand Down

0 comments on commit f3af2ab

Please sign in to comment.