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(sdk_io): float input to range #387

Merged
merged 2 commits into from
Dec 17, 2024
Merged

Conversation

akasaki1211
Copy link
Contributor

Fixed an error in mgear.rigbits.sdk_io when using Python3, where a float value was entered into range().

@miquelcampos miquelcampos self-assigned this Feb 16, 2024
@miquelcampos miquelcampos added the bug Something isn't working label Feb 16, 2024
@miquelcampos
Copy link
Member

Thanks @akasaki1211 I will check it ASAP

@@ -414,7 +414,9 @@ def stripKeys(animNode):
Args:
animNode (pynode): sdk/anim node
"""
numKeys = len(pm.listAttr(animNode + ".ktv", multi=True)) / 3
Copy link
Contributor

Choose a reason for hiding this comment

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

Hey a suggestion, this could be made simpler by just using the integer division operator instead:

    numKeys = len(pm.listAttr(animNode + ".ktv", multi=True)) // 3

@akasaki1211
Copy link
Contributor Author

Thanks @chelloiaco for the great review. I have changed it to be simpler.

miquelcampos added a commit that referenced this pull request Dec 17, 2024
@miquelcampos miquelcampos merged commit 2e71a07 into mgear-dev:master Dec 17, 2024
1 check failed
@akasaki1211 akasaki1211 deleted the dev branch December 17, 2024 10:31
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
Status: 4.2.x
Development

Successfully merging this pull request may close these issues.

3 participants