You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix error message when removing only child from GraphNode
Fixes #89695.
This commit is contained in:
committed by
Rémi Verschelde
parent
29b3d9e9e5
commit
eb9e193477
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user