3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-26 22:35:27 +02:00

Re-order variable initialization in CollisionRegion copy contructor

This commit is contained in:
sabrina-shanman 2018-08-28 08:45:47 -07:00
parent c6e6da2e3f
commit 6f6e70a470

View file

@ -270,10 +270,10 @@ public:
CollisionRegion() { }
CollisionRegion(const CollisionRegion& collisionRegion) :
threshold(collisionRegion.threshold),
modelURL(collisionRegion.modelURL),
shapeInfo(std::make_shared<ShapeInfo>()),
transform(collisionRegion.transform)
transform(collisionRegion.transform),
threshold(collisionRegion.threshold)
{
shapeInfo->setParams(collisionRegion.shapeInfo->getType(), collisionRegion.shapeInfo->getHalfExtents(), collisionRegion.modelURL.toString());
}