Mercurial > hg > Members > kono > Cerium
comparison Renderer/Engine/SceneGraph.cc @ 848:df80613f1e1a
addChild fix
author | tkaito |
---|---|
date | Sun, 06 Jun 2010 03:31:52 +0900 |
parents | 24a37fe8419a |
children | 0e5dcda89c8e |
comparison
equal
deleted
inserted
replaced
846:dbcfa04ee4db | 848:df80613f1e1a |
---|---|
225 { | 225 { |
226 /* childrenのリストの最後に加える (brother として)*/ | 226 /* childrenのリストの最後に加える (brother として)*/ |
227 if (this->lastChild != NULL) { | 227 if (this->lastChild != NULL) { |
228 SceneGraphPtr last = this->lastChild; | 228 SceneGraphPtr last = this->lastChild; |
229 last->brother = child; | 229 last->brother = child; |
230 child->parent = this; | |
231 return child; | |
230 } | 232 } |
231 | 233 |
232 this->lastChild = child; | 234 this->lastChild = child; |
233 | 235 |
234 if (this->children == NULL) { | 236 if (this->children == NULL) { |