Remove spurious whole-arena copying in mj_copyData.
Fix #568 PiperOrigin-RevId: 524929990 Change-Id: I164cb98cff752bf5d0a506bc0a290198775da0ef
This commit is contained in:
committed by
Copybara-Service
parent
c943797591
commit
3e85ef5f38
@@ -1158,7 +1158,6 @@ mjData* mj_copyData(mjData* dest, const mjModel* m, const mjData* src) {
|
||||
}
|
||||
|
||||
// copy arena memory
|
||||
memcpy(dest->arena, src->arena, src->nstack * sizeof(mjtNum));
|
||||
#define X(type, name, nr, nc) \
|
||||
dest->name = src->name ? (type*)((char*)dest->arena + PTRDIFF(src->name, src->arena)) : NULL;
|
||||
MJDATA_ARENA_POINTERS
|
||||
|
||||
Reference in New Issue
Block a user