Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

thinking about Element datastruct

  • Loading branch information...
commit 8db4e45a924caf08b9a6a8a9b1e87158bd697986 1 parent 77a29bf
Matt Rasmussen authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.