Skip to content

Error in console while duplicate a node from instanciate scene with animations #63796

@Datoh

Description

@Datoh

Godot version

4.0alpha13 (8281136)

System information

Windows 10

Issue description

When duplicate a Node that is an instancied child scene that conatins an AnimationPlayer, I have error in the log:

E 0:00:00:0924   _ready: Attempt to disconnect a nonexistent connection from '[Animation:-9223372010933976578]'. Signal: 'tracks_changed', callable: 'AnimationPlayer::_animation_changed'.
  <C++ Error>    Condition "signal_is_valid" is true.
  <C++ Source>   core/object/object.cpp:1295 @ _disconnect()
  <Stack Trace>  test.gd:4 @ _ready()

Steps to reproduce

Create a "child" scene with a Sprite and an AnimationPlayer with at least one animation.
Create a scene which contains the instancied "child" scene.
Add a script to the scene which duplicate the "child" scene and add it to the root

Minimal reproduction project

Bug_duplicate_animation.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions