1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-04 19:21:46 +00:00

Fix bug in pause mode propagation

Pause mode was not correctly propagating effectively stopping
immediately when the mode was not PAUSE_MODE_INHERIT.
This commit is contained in:
Fabio Alessandrelli
2017-05-06 02:37:17 +02:00
parent 18df047f0b
commit a5ce7a98cb

View File

@@ -463,7 +463,7 @@ Node::PauseMode Node::get_pause_mode() const {
void Node::_propagate_pause_owner(Node *p_owner) {
if (data.pause_mode != PAUSE_MODE_INHERIT)
if (this != p_owner && data.pause_mode != PAUSE_MODE_INHERIT)
return;
data.pause_owner = p_owner;
for (int i = 0; i < data.children.size(); i++) {