godotengine / godotengine/godot

`Curve` emits `changed` signal on scene reload even when no change has happened

Open
#117,802 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

needs testing topic:editor
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

Tested versions

Reproducible in 4.6.1.stable

System information

Godot v4.6.1.stable - Windows 11 (build 26200) - Multi-window, 1 monitor - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1660 SUPER (NVIDIA; 32.0.15.9186) - Intel(R) Core(TM) i7-10700F CPU @ 2.90GHz (16 threads) - 15.92 GiB memory

Issue description

A Curve's changed signal can emit in the editor even when no change has occurred, leading to unexpected bugs in tool scripts. Specifically, under the following conditions:

  • The curve is an exported property of a node in a scene A
  • The curve contains at least a point
  • Scene A is open in the editor
  • Another scene B is also open which contains an instance of scene A
  • Scene A is reloaded
Steps to reproduce
  • Open both the test and the thing scenes in the attached project.
  • Reload the thing scene, and look at the console printout.
Minimal reproduction project (MRP)

bug-report.zip

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the attached minimal reproduction project and opening the test and thing scenes as described. Trace how Curve handles its changed signal while scene A is reloaded with an instance open in scene B. Done means reloading thing no longer prints a change when the curve itself was not modified.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, godot
Domain
game-dev, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.