aws-deadline / deadline-cloud-for-cinema-4d

AWS Deadline Cloud for Cinema 4D
Apache License 2.0
8 stars 9 forks source link

fix: frame override checkbox with pyside6 #54

Closed lucaseck closed 4 months ago

lucaseck commented 4 months ago

Resolves #52

What was the problem/requirement? (What/Why)

Frame override checkbox wasn't working with Pyside6

This is likely only an issue when using Pyside6. Pyside6 introduced changes to how enums are handled which seems to be the culprit.

What was the solution? (How)

Convert to a CheckState enum to compare against Qt.Checked

What is the impact of this change?

Frame override checkbox works again with Pyside6

How was this change tested?

Verified the toggle didn't work without my change and then did with the change

Was this change documented?

No

Is this a breaking change?

No

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.