sketchpunklabs / ossos

Webbased Character Animation System
MIT License
417 stars 46 forks source link

Added negative lookbehind to reLeft #5

Closed msub2 closed 6 months ago

msub2 commented 2 years ago

By default, models exported from VRoid Studio have a naming convention of J_Bip_L_/J_Bip_R_ for the limbs. When trying to load one of these models in, the bone parser will pick up J_Bip_R_LowerLeg as shin_l and subsequently fail to locate shin_r. The same happens with forearm_r. This adds a negative lookbehind to reLeft to avoid the false positive and actually allows the model to load in properly.

Pic: