Commit 19250990 authored by Claes Sjofors's avatar Claes Sjofors

Bugfix in mem volume createObject: object with null destination was created as...

Bugfix in mem volume createObject: object with null destination was created as child to root object, not sibling
parent cb44c5cc
......@@ -706,10 +706,10 @@ wb_orep *wb_vrepmem::createObject(pwr_tStatus *sts, wb_cdef cdef, wb_destination
if ( d.oid().oix == 0) {
dest = root_object;
if ( code == ldh_eDest_After)
code = ldh_eDest_IntoLast;
if ( code == ldh_eDest_Before)
code = ldh_eDest_IntoFirst;
if ( code == ldh_eDest_IntoLast)
code = ldh_eDest_After;
if ( code == ldh_eDest_IntoFirst)
code = ldh_eDest_Before;
}
else {
dest = findObject( d.oid().oix);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment