Skip to content
Snippets Groups Projects
Verified Commit 726564ed authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: fix init of ConvexBase

parent ab3f2b7c
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,6 @@ void ConvexBase::set(bool own_storage_, Vec3f* points_, unsigned int num_points_
ConvexBase::ConvexBase(const ConvexBase& other) :
ShapeBase (other),
points (other.points),
num_points (other.num_points),
center (other.center),
own_storage_ (other.own_storage_)
......@@ -73,6 +72,8 @@ ConvexBase::ConvexBase(const ConvexBase& other) :
points = new Vec3f[num_points];
memcpy((void*)points, other.points, sizeof(Vec3f) * num_points);
}
else
points = other.points;
neighbors = new Neighbors[num_points];
memcpy(neighbors, other.neighbors, sizeof(Neighbors) * num_points);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment