diff --git a/libraries/shared/src/RegisteredMetaTypes.h b/libraries/shared/src/RegisteredMetaTypes.h index 312e017dc8..32ecfe8b6d 100644 --- a/libraries/shared/src/RegisteredMetaTypes.h +++ b/libraries/shared/src/RegisteredMetaTypes.h @@ -270,10 +270,10 @@ public: CollisionRegion() { } CollisionRegion(const CollisionRegion& collisionRegion) : - threshold(collisionRegion.threshold), modelURL(collisionRegion.modelURL), shapeInfo(std::make_shared()), - transform(collisionRegion.transform) + transform(collisionRegion.transform), + threshold(collisionRegion.threshold) { shapeInfo->setParams(collisionRegion.shapeInfo->getType(), collisionRegion.shapeInfo->getHalfExtents(), collisionRegion.modelURL.toString()); }