SparsePtr: Make pointer conversion explicit
This commit is contained in:
parent
2cc95b4f75
commit
364122f582
|
|
@ -43,7 +43,7 @@ namespace Nz
|
|||
void SetStride(int stride);
|
||||
|
||||
explicit operator bool() const;
|
||||
operator T*() const;
|
||||
explicit operator T*() const;
|
||||
T& operator*() const;
|
||||
T* operator->() const;
|
||||
T& operator[](std::size_t index) const;
|
||||
|
|
|
|||
|
|
@ -347,7 +347,7 @@ namespace Nz
|
|||
m_vertices[i] = *vertices++;
|
||||
}
|
||||
else // Fast path
|
||||
std::memcpy(m_vertices.data(), vertices, vertexCount*sizeof(Vector3f));
|
||||
std::memcpy(m_vertices.data(), vertices.GetPtr(), vertexCount*sizeof(Vector3f));
|
||||
}
|
||||
|
||||
ConvexCollider3D::ConvexCollider3D(SparsePtr<const Vector3f> vertices, unsigned int vertexCount, float tolerance, const Vector3f& translation, const Quaternionf& rotation) :
|
||||
|
|
|
|||
Loading…
Reference in New Issue