godotengine / godotengine/godot

Changing visibility for a node in an editor dock has no effect

Open
#89,211 6 comments 0 reactions 0 assignees View on GitHub
bug needs testing topic:2d
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

- Reproducible in v4.3.dev4.official [df78c0636]
- Not reproducible in v4.2

### System information

Godot v4.3.dev4 - Windows 10.0.19045 - Vulkan (Mobile)

### Issue description

In plugins, if you toggle the visibility of a dock-attached node from false to true, the node stays invisible. Please see the attached project. The label in the dock on the bottom right corner should become visible when the Polygon2D node is selected in the scene tree. This works in 4.2, but not in the latest preview build.

### Steps to reproduce

From an editor plugin, add a node in one of the editor dock slots. Toggle visibility to false and back to true. The node will not be visible, even if the "visible" is set to true.

### Minimal reproduction project (MRP)

[VisibilityBug.zip](https://github.com/godotengine/godot/files/14508736/VisibilityBug.zip)

Contributor guide

Open the contributing guide

Research direction

Start with the attached VisibilityBug.zip minimal reproduction project and follow the editor-plugin steps for a node added to a dock slot. Compare the visibility toggle behavior in Godot 4.3.dev4 with 4.2, using the Polygon2D selection case described in the issue. Done means the dock label becomes visible again after visibility is toggled from false to true.

Written by the indexing model from the issue text.

Assessment

Tech stack
godot
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.