1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-18 14:21:41 +00:00

Merge pull request #90229 from Santoss1809/master

Fix error message when removing only child from GraphNode
This commit is contained in:
Rémi Verschelde
2024-04-26 11:08:25 +02:00
2 changed files with 61 additions and 1 deletions

View File

@@ -336,7 +336,8 @@ void GraphNode::_notification(int p_what) {
int width = get_size().width - sb_panel->get_minimum_size().x;
if (get_child_count() > 0) {
// Take the HboxContainer child into account.
if (get_child_count(false) > 0) {
int slot_index = 0;
for (const KeyValue<int, Slot> &E : slot_table) {
if (E.key < 0 || E.key >= slot_y_cache.size()) {