Hi, On Fri, 2008-05-16 at 11:14 +0800, Gerrit Voss wrote: > Hi, >
> > on a somewhat related note, the attached unit test passes, except for > > the very last CHECK_EQUAL. Apparently nrp0->getMFChildren()->at(0) is > > still there although the child has been moved to a different parent. > > Does that sound like something that should work or should I just start a > > debugging session ? ;) > > it was just a simple typo in OSGNode.cpp. The fix is commited. if https://opensg.vrsource.org would be working for me, which it is not right now;-(, at least I can not commit anything. It looks like the connection is clogged. Therefore here is the patch. --------------- Source/System/FieldContainer/Node/OSGNode.cpp ---------------- index 6be1baf..62f846b 100644 @@ -575,7 +575,7 @@ bool Node::linkParent (FieldContainer * const pParent, if(pOldParent != NULL) { - pOldParent->unlinkChild(this, ParentFieldId); + pOldParent->unlinkChild(this, ChildrenFieldId); } editSField(ParentFieldMask); kind regards, gerrit ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Opensg-core mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-core
