Skip to content

Commit

Permalink
Fix an annoying bug with UTCEditor portrait select
Browse files Browse the repository at this point in the history
  • Loading branch information
th3w1zard1 committed Jul 6, 2024
1 parent 2bc9a11 commit c9f0548
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tools/HolocronToolset/src/toolset/gui/editors/utc.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ def randomizeLastname(self):
def generateTag(self):
self.ui.tagEdit.setText(self.ui.resrefEdit.text())

def portraitChanged(self, index: int):
def portraitChanged(self, _actual_combo_index: int):
"""Updates the portrait picture based on the selected index.
Args:
Expand All @@ -682,6 +682,7 @@ def portraitChanged(self, index: int):
- Else builds pixmap from index
- Sets pixmap to portrait picture widget.
"""
index = self.ui.portraitSelect.currentIndex()
if index == 0:
image = QImage(bytes(0 for _ in range(64 * 64 * 3)), 64, 64, QImage.Format.Format_RGB888)
pixmap = QPixmap.fromImage(image)
Expand Down

0 comments on commit c9f0548

Please sign in to comment.