mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 14:59:14 +02:00
recreate the MarkerNode tree on agent copy
This commit is contained in:
parent
3ead1a5827
commit
eec16a8eb5
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ VoxelAgentData::~VoxelAgentData() {
|
||||||
|
|
||||||
VoxelAgentData::VoxelAgentData(const VoxelAgentData &otherAgentData) {
|
VoxelAgentData::VoxelAgentData(const VoxelAgentData &otherAgentData) {
|
||||||
memcpy(position, otherAgentData.position, sizeof(float) * 3);
|
memcpy(position, otherAgentData.position, sizeof(float) * 3);
|
||||||
rootMarkerNode = new MarkerNode(*otherAgentData.rootMarkerNode);
|
rootMarkerNode = new MarkerNode();
|
||||||
}
|
}
|
||||||
|
|
||||||
VoxelAgentData* VoxelAgentData::clone() const {
|
VoxelAgentData* VoxelAgentData::clone() const {
|
||||||
|
|
Loading…
Reference in a new issue