Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rexrainbow committed Aug 21, 2023
1 parent 8e8bb2f commit b58be4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/gameobjects/tagtext/textbase/penmanger/PenManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ class PenManager {
pen = this.pens[i];
penEndIdx = pen.endIndex;
if ((penEndIdx <= start) && (start > 0)) {
// Image pen before first character
continue;
}
pen = this.pens[i];
Expand All @@ -260,6 +261,7 @@ class PenManager {

previousProp = currentProp;
if ((penEndIdx >= end) && (end < lastPenEnd)) {
// Image pen after last character
break;
}
}
Expand Down

0 comments on commit b58be4b

Please sign in to comment.