Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: frame override checkbox does not enable frame list in Maya 2025 #190

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

epmog
Copy link
Contributor

@epmog epmog commented Oct 28, 2024

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

Maya 2025 support was just added that uses PySide6. PySide6 changed how they handle enum values: https://doc.qt.io/qtforpython-6/considerations.html#the-new-python-enums. So the way we're checking does not enable the frame list properly.

What was the solution? (How)

PR for inspiration: aws-deadline/deadline-cloud-for-blender#90

What is the impact of this change?

It works!

How was this change tested?

hatch run lint
hatch run test

Will test manually first before merging.

Did you run the "Job Bundle Output Tests"? If not, why not? If so, paste the test results here.

N/A, this is for the UI, not the job bundles.

Was this change documented?

N/A

Is this a breaking change?

Nope


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

@epmog epmog requested a review from a team as a code owner October 28, 2024 18:33
@epmog epmog added the bug Something isn't working label Oct 28, 2024
Copy link

@@ -200,4 +200,4 @@ def activate_frame_override_changed(self, state):
"""
Set the activated/deactivated status of the Frame override text box
"""
self.frame_override_txt.setEnabled(state == Qt.Checked)
self.frame_override_txt.setEnabled(Qt.CheckState(state) == Qt.Checked)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super nit, can 199 state use a type so bugs like this can be found via lint

@epmog epmog merged commit b054dd4 into mainline Oct 28, 2024
12 checks passed
@epmog epmog deleted the fix_frame_override_checkbox branch October 28, 2024 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants