[Bf-blender-cvs] [0006f78cb6e] master: Revert "BKE: Fix compiling with clang-tidy and readability-non-const-parameter"

Clément Foucault noreply at git.blender.org
Tue Sep 8 20:18:29 CEST 2020


Commit: 0006f78cb6eec3f0c17d2b071f0648edf3c2cbb9
Author: Clément Foucault
Date:   Tue Sep 8 20:17:20 2020 +0200
Branches: master
https://developer.blender.org/rB0006f78cb6eec3f0c17d2b071f0648edf3c2cbb9

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.

===================================================================

M	source/blender/blenkernel/BKE_volume_render.h
M	source/blender/blenkernel/intern/volume_render.cc

===================================================================

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);



More information about the Bf-blender-cvs mailing list