address @dgirardeau review

This commit is contained in:
Romain Janvier
2024-09-30 21:59:34 +02:00
parent 9a5ef82e56
commit c3f8915ce5
3 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -67,9 +67,9 @@ ccBox* qVoxFallTransform::CreateVoxelMesh(CCVector3 V, float voxelSize, int voxe
const Vector3Tpl<float> X(1, 0, 0);
const Vector3Tpl<float> Y(0, 1, 0);
const Vector3Tpl<float> Z(0, 0, 1);
ccGLMatrix* matrix = new ccGLMatrix(X, Y, Z, V);
const ccGLMatrix matrix(X, Y, Z, V);
ccBox* voxel = new ccBox(dims, matrix, name);
ccBox* voxel = new ccBox(dims, &matrix, name);
voxel->computePerTriangleNormals();
return voxel;
}