cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

Error after duplicating animation graph

Open Biodam opened this issue 2 years ago • 1 comments

Cocos Creator version

3.5.1

System information

Windows 11

Issue description

It seems that a “ghost” variable is staying in the serialized file of animation graph after a duplication and deleting a variable

Relevant error log output

image

Steps to reproduce

  1. Create a animation graph with a trigger variable
    
  2. Duplicate it
    
  3. Delete the variable in the new animation graph, and create a new trigger variable
    
  4. Try to use the newly created graph
    

Minimal reproduction project

No response

Biodam avatar Sep 13 '22 16:09 Biodam

You need to remove the references of that variable as well. In later release 3.6.2 version, we're going to optimize this behavior.

arsen2010 avatar Sep 14 '22 02:09 arsen2010

Sorry,this optimization too late to catch up v3.6.2 , would be delay to v3.7 . On v3.7 when remove a variable ,if the variable is be used would pop a confirm warning dialog to user.

arsen2010 avatar Sep 29 '22 03:09 arsen2010