mirror of
https://github.com/farmakis/qVoxFall.git
synced 2026-08-30 16:40:24 +08:00
address @dgirardeau review
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user