Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Bug: Avoid redefinition of variable name in burnin OTIO
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyprien CAILLOT committed Sep 11, 2024
1 parent d9731d0 commit f1b5221
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openpype/scripts/slates/slate_base/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,11 +486,11 @@ def recalculate_by_width(self, value, max_width):
line = self.ellide_text
break

for idx, char in enumerate(_word):
for char_index, char in enumerate(_word):
_line = line + char + self.ellide_text
_line_width = font.getsize(_line)[0]
if _line_width > max_width:
if idx == 0:
if char_index == 0:
line = _line
break
line = line + char
Expand Down

0 comments on commit f1b5221

Please sign in to comment.