diff options
| author | Juan Linietsky <reduzio@gmail.com> | 2014-12-08 16:46:51 -0200 |
|---|---|---|
| committer | Juan Linietsky <reduzio@gmail.com> | 2014-12-08 16:46:51 -0200 |
| commit | 9df8d5f616dbb3f81299ccca4929c0a8f46a6d79 (patch) | |
| tree | bb4057fbcba6afe10bc786758bee32e98334958e /scene/main/node.cpp | |
| parent | 0114ac2192c0aa9a19651027e274f3640a40d72d (diff) | |
| parent | 25f8f5339a803d55d448d1760b5e8671e0946509 (diff) | |
| download | redot-engine-9df8d5f616dbb3f81299ccca4929c0a8f46a6d79.tar.gz | |
Merge pull request #916 from quabug/commit
Add move_child_notify method in Node class
Diffstat (limited to 'scene/main/node.cpp')
| -rw-r--r-- | scene/main/node.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp index 292e4d1a7b..45a30d7bca 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -271,6 +271,7 @@ void Node::move_child(Node *p_child,int p_pos) { data.children[i]->data.pos=i; } // notification second + move_child_notify(p_child); for (int i=0;i<data.children.size();i++) { data.children[i]->notification( NOTIFICATION_MOVED_IN_PARENT ); @@ -310,6 +311,11 @@ void Node::remove_child_notify(Node *p_child) { // to be used when not wanted } +void Node::move_child_notify(Node *p_child) { + + // to be used when not wanted +} + void Node::set_fixed_process(bool p_process) { if (data.fixed_process==p_process) |
