NickHugi / PyKotor

A Python library that can read and modify most file formats used by the game Knights of the Old Republic and its sequel.
GNU Lesser General Public License v3.0
11 stars 3 forks source link

Fix DLG camera angle selection #97

Closed th3w1zard1 closed 5 months ago

th3w1zard1 commented 5 months ago

There are seven Camera angles and they start from 0, so this check is incorrect:

        elif node.camera_id == -1 and self.ui.cameraAngleSelect.currentIndex() == 6:
            self.ui.cameraAngleSelect.setCurrentIndex(0)

should be checking if it's == 7, or better yet check if it's greater than 7. Not sure why this check exists in the first place but w/e

Without this change it's impossible to select 'Static Camera' image