LumaPictures / pymel

Python in Maya Done Right
Other
479 stars 130 forks source link

Fix for parenting bug found in #406 #408

Closed bob-white closed 6 years ago

bob-white commented 6 years ago

The slicing syntax was creating a single element sequence that contained a sequence of child nodes. When that sequence was passed into the PyNode constructor, it would stringify it and throw an exception.

pmolodo commented 6 years ago

Rejecting, as it would cause other problems / test failures - "children" is expected to be a list, not a single node.

The problem was that the commands expecting args to be a flat list of nodes, instead of a list of groups or single nodes. Fixed here:

https://github.com/LumaPictures/pymel/commit/8a9a43647d96bd2aea25f32bf485441694c4a884

Appreciate the submission, though, helped to highlight the problem!

bob-white commented 6 years ago

Awesome. Glad you got it fixed.