mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 06:03:38 +00:00
Merge pull request #51176 from KoBeWi/nullbind
Add null check to Tween.bind_node()
This commit is contained in:
commit
538d026527
@ -140,6 +140,8 @@ bool Tween::is_valid() {
|
||||
}
|
||||
|
||||
Ref<Tween> Tween::bind_node(Node *p_node) {
|
||||
ERR_FAIL_NULL_V(p_node, this);
|
||||
|
||||
bound_node = p_node->get_instance_id();
|
||||
is_bound = true;
|
||||
return this;
|
||||
|
Loading…
Reference in New Issue
Block a user