Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-09-08 21:17:20 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-09-08 21:18:10 +0300
commit0006f78cb6eec3f0c17d2b071f0648edf3c2cbb9 (patch)
tree6e97ef05c1153bc611b2760847316ac977449def /source
parent9eba40b848bec0ba3f537ad9cadaa94aef6d955c (diff)
Revert "BKE: Fix compiling with clang-tidy and readability-non-const-parameter"
This reverts commit 637a5c964a01f5e8733e972cb8a30341eb91058e. I commited the previous commit because I wasn't building with openvdb. Compiling with openvdb fix the clang-tidy errror.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/BKE_volume_render.h2
-rw-r--r--source/blender/blenkernel/intern/volume_render.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_volume_render.h b/source/blender/blenkernel/BKE_volume_render.h
index ac69b615c3f..a42f24a5312 100644
--- a/source/blender/blenkernel/BKE_volume_render.h
+++ b/source/blender/blenkernel/BKE_volume_render.h
@@ -46,7 +46,7 @@ void BKE_volume_grid_dense_voxels(const struct Volume *volume,
struct VolumeGrid *volume_grid,
const int64_t min[3],
const int64_t max[3],
- const float *voxels);
+ float *voxels);
/* Wireframe */
diff --git a/source/blender/blenkernel/intern/volume_render.cc b/source/blender/blenkernel/intern/volume_render.cc
index ab9242ad24a..98d3617c822 100644
--- a/source/blender/blenkernel/intern/volume_render.cc
+++ b/source/blender/blenkernel/intern/volume_render.cc
@@ -94,7 +94,7 @@ void BKE_volume_grid_dense_voxels(const Volume *volume,
VolumeGrid *volume_grid,
const int64_t min[3],
const int64_t max[3],
- const float *voxels)
+ float *voxels)
{
#ifdef WITH_OPENVDB
openvdb::GridBase::ConstPtr grid = BKE_volume_grid_openvdb_for_read(volume, volume_grid);