summaryrefslogtreecommitdiffstats
path: root/src/render/jobs/calcboundingvolumejob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/jobs/calcboundingvolumejob.cpp')
-rw-r--r--src/render/jobs/calcboundingvolumejob.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/jobs/calcboundingvolumejob.cpp b/src/render/jobs/calcboundingvolumejob.cpp
index feeb7c422..ccffe2c84 100644
--- a/src/render/jobs/calcboundingvolumejob.cpp
+++ b/src/render/jobs/calcboundingvolumejob.cpp
@@ -123,9 +123,11 @@ void calculateLocalBoundingVolume(NodeManagers *manager, Entity *node)
const int stride = pickVolumeAttribute->byteStride() ? pickVolumeAttribute->byteStride() : sizeof(float) * pickVolumeAttribute->dataSize();
QVector<QVector3D> vertices(pickVolumeAttribute->count());
+ // TODO avoid copying the vertices
for (int c = 0, vC = vertices.size(); c < vC; ++c) {
QVector3D v;
const float *fptr = reinterpret_cast<const float*>(rawBuffer);
+ // TODO unwrap loop (switch?)
for (uint i = 0, m = qMin(pickVolumeAttribute->dataSize(), 3U); i < m; ++i)
v[i] = fptr[i];
vertices[c] = v;