diff options
author | quabug <quabug@gmail.com> | 2014-12-03 12:17:23 +0800 |
---|---|---|
committer | quabug <quabug@gmail.com> | 2014-12-03 13:22:06 +0800 |
commit | 4a7114262343e39235569525b7939896f806b4e6 (patch) | |
tree | e94af4cc7c402aeff044ce2b708aa430bcfb6fd1 | |
parent | 8ad12525a90d90d77dc08b3d6decae33be5675c4 (diff) |
Add move_child_notify method in Node class
-rw-r--r-- | scene/main/node.cpp | 6 | ||||
-rw-r--r-- | scene/main/node.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp index 292e4d1a7b..4163e6a1b8 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) diff --git a/scene/main/node.h b/scene/main/node.h index 9229e2f9bb..371a5325ca 100644 --- a/scene/main/node.h +++ b/scene/main/node.h @@ -142,6 +142,7 @@ protected: virtual void add_child_notify(Node *p_child); virtual void remove_child_notify(Node *p_child); + virtual void move_child_notify(Node *p_child); void remove_and_delete_child(Node *p_child); void _propagate_replace_owner(Node *p_owner,Node* p_by_owner); |