Add a default constructor to PickResult to avoid brittle instatiation.
This commit is contained in:
parent
f98959f92a
commit
22a6714875
@ -33,6 +33,7 @@ namespace PolyVox
|
||||
*/
|
||||
struct PickResult
|
||||
{
|
||||
PickResult() : didHit(false) {}
|
||||
bool didHit; ///< Did the picking operation hit anything
|
||||
Vector3DInt32 hitVoxel; ///< The location of the solid voxel it hit
|
||||
Vector3DInt32 previousVoxel; ///< The location of the voxel before the one it hit
|
||||
|
@ -42,7 +42,7 @@ namespace PolyVox
|
||||
public:
|
||||
RaycastPickingFunctor(const typename VolumeType::VoxelType& emptyVoxelExample)
|
||||
:m_emptyVoxelExample(emptyVoxelExample)
|
||||
,m_result{false}
|
||||
,m_result()
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user