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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

akasaki1211
Copy link

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
Author

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

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: WIP
Development

Successfully merging this pull request may close these issues.

3 participants