You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.
In the function replaceShape() line 410. If a pre-existing shape doesn't exist on the target node, it fails with an error and then leaves remaining duplicate nodes from the function leftover in the scene. This is because the variable cnx is only declared if a shape is found. But cnx gets called outside the scope of "if shape:"
Suggested fix.
Declare "cnx = None" or "cnx = []" at the beginning of the function.
Then, if a shape doesn't already exist, it will just add it to the transform.
(I'll do a PR in December if no one else gets to it.)
The text was updated successfully, but these errors were encountered:
scripts/mgear/rigbits/init.py
In the function replaceShape() line 410. If a pre-existing shape doesn't exist on the target node, it fails with an error and then leaves remaining duplicate nodes from the function leftover in the scene. This is because the variable cnx is only declared if a shape is found. But cnx gets called outside the scope of "if shape:"
Suggested fix.
Declare "cnx = None" or "cnx = []" at the beginning of the function.
Then, if a shape doesn't already exist, it will just add it to the transform.
(I'll do a PR in December if no one else gets to it.)
The text was updated successfully, but these errors were encountered: