Merge pull request #8663 from Faless/fix_propagate_pause

Fix bug in pause mode propagation
This commit is contained in:
Rémi Verschelde 2017-05-06 10:26:23 +02:00 committed by GitHub
commit 9aee18ef6b

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++) {