diff options
| author | reduz | 2015-12-29 10:01:29 -0300 |
|---|---|---|
| committer | reduz | 2015-12-29 10:01:29 -0300 |
| commit | 2f19260fb7b7479eab6ad905683cbef8126fc0e8 (patch) | |
| tree | 52fbb441e7ccbc4e0b5f728c6fcbc8756014b28b /scene/main/node.cpp | |
| parent | 45ad1024e12ffa6db0e56cb36c007dd212d5e37e (diff) | |
| download | godot-2f19260fb7b7479eab6ad905683cbef8126fc0e8.tar.gz godot-2f19260fb7b7479eab6ad905683cbef8126fc0e8.tar.zst godot-2f19260fb7b7479eab6ad905683cbef8126fc0e8.zip | |
-restrict gui root from being removed while performing input, fixes #2578
Diffstat (limited to 'scene/main/node.cpp')
| -rw-r--r-- | scene/main/node.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp index 2b2a188e7..f5252cf44 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -802,6 +802,7 @@ void Node::remove_child(Node *p_child) { } ERR_FAIL_COND( idx==-1 ); + ERR_FAIL_COND( p_child->data.blocked > 0 ); //if (data.scene) { does not matter |
