Skip to content

Adding/Removing entries from an array causes the inspector to rebuild. #76985

@MewPurPur

Description

@MewPurPur

Godot version

4.0.2

System information

Ubuntu 22.04.1 LTS

Issue description

In my curve editor overhaul PR #74959, I wanted to make it so LMB creates points and allows to adjust them before the mouse button is released. However, as soon as I add a point, the dictionary with the points adds a new entry, which causes a property tree update, reconstructing the whole inspector. This causes the point to become unselected, messing up the workflow in my PR. It's the only loose end remaining for that PR and I don't believe it's necessary, since Dictionary is handled by its own editor plugin.

Steps to reproduce

If you have Godot's source code, you can add print_line("test") to the CurveEditor constructor (curve_editor_plugin.cpp) and see that it prints every time points are added or removed.

Minimal reproduction project

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions