What is the method to bind the skin and bone?

Author: FOkvjCreated Apr 7, 2021Updated Apr 7, 2021

How to bind the skin to the bone? I can't understand the method from codes. Like the method, "bindPathToBones(path, selectedBones)" in "illustration.js"?