Replies: 1 comment
-
I made an Issue from this discussion - it's a bug. Thanks for pointing it out. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Based on a recent discussion about creating custom part objects I tried to convert some existing naive part classes to subclass BasePartObject:
After I did this any attempt to connect_to an instance of the custom part silently failed. The call succeeded but the part was not moved.
The trick was to change to order of things slightly:
With the first (incorrect) version it is strange that the connect_to succeeded without a KeyError. It looks like the super.init() copies the joints dict from the subpart to the new object, but it doesn't adjust the joints' parent attribute appropriately. I'm not sure if that is a bug, but it certainly tripped me up!
Cheers.
Beta Was this translation helpful? Give feedback.
All reactions