Skip to content
Browse files

thinking about Element datastruct

  • Loading branch information...
1 parent 77a29bf commit 8db4e45a924caf08b9a6a8a9b1e87158bd697986 Matt Rasmussen committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/SummonSceneGraph/Element.cpp
View
5 src/SummonSceneGraph/Element.cpp
@@ -154,6 +154,11 @@ void Element::ReplaceChild(Element *oldchild, Element *newchild)
if (oldchild == m_child) {
// replace first child
m_child = newchild;
+
+ // TODO: this might be a bug, I think the following code is needed
+ //if (oldchild->prev == oldchild)
+ // // replace single child
+ // newchild->m_prev = newchild;
newchild->m_prev = newchild;
} else
newchild->m_prev->m_next = newchild;

0 comments on commit 8db4e45

Please sign in to comment.
Something went wrong with that request. Please try again.