bdunderscore / ndmf

MIT License
71 stars 22 forks source link

fix: CVRAvatar prevents removal of Animator #260

Closed hai-vr closed 3 months ago

hai-vr commented 3 months ago

The error "Can't remove Animator because CVRAvatar (Script) depends on it" occurs in ChilloutVR avatars during the recreation of the Animator component.

This is because CVRAvatar has a RequireComponent annotation for Animator.

This commit fixes this issue by removing CVRAvatar first, and recreates it in the same way.

Tested on ChilloutVR CCK v3.9 RELEASE