Mercurial > hg > Game > Cerium
changeset 848:a033d464c812 draft
addChild fix
author | tkaito |
---|---|
date | Sun, 06 Jun 2010 03:31:52 +0900 |
parents | 74e9b78cfda8 |
children | a84ae8e44710 |
files | Renderer/Engine/SceneGraph.cc Renderer/Engine/SceneGraphRoot.cc Renderer/Engine/SceneGraphRoot.h |
diffstat | 3 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Renderer/Engine/SceneGraph.cc Fri Jun 04 09:01:00 2010 +0900 +++ b/Renderer/Engine/SceneGraph.cc Sun Jun 06 03:31:52 2010 +0900 @@ -227,6 +227,8 @@ if (this->lastChild != NULL) { SceneGraphPtr last = this->lastChild; last->brother = child; + child->parent = this; + return child; } this->lastChild = child;