1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-26 15:46:23 +00:00

Prevent errors when using ViewportTexture

This commit is contained in:
kobewi
2023-04-06 14:47:49 +02:00
parent 491a437df5
commit 1b9802fa8c
6 changed files with 70 additions and 20 deletions

View File

@@ -2786,6 +2786,10 @@ bool Node::is_displayed_folded() const {
return data.display_folded;
}
bool Node::is_ready() const {
return !data.ready_first;
}
void Node::request_ready() {
data.ready_first = true;
}
@@ -2932,6 +2936,7 @@ void Node::_bind_methods() {
ClassDB::bind_method(D_METHOD("queue_free"), &Node::queue_free);
ClassDB::bind_method(D_METHOD("request_ready"), &Node::request_ready);
ClassDB::bind_method(D_METHOD("is_node_ready"), &Node::is_ready);
ClassDB::bind_method(D_METHOD("set_multiplayer_authority", "id", "recursive"), &Node::set_multiplayer_authority, DEFVAL(true));
ClassDB::bind_method(D_METHOD("get_multiplayer_authority"), &Node::get_multiplayer_authority);