[Bf-blender-cvs] [637a5c964a0] master: BKE: Fix compiling with clang-tidy and readability-non-const-parameter
Clément Foucault
noreply at git.blender.org
Tue Sep 8 18:29:14 CEST 2020
Commit: 637a5c964a01f5e8733e972cb8a30341eb91058e
Author: Clément Foucault
Date: Tue Sep 8 18:29:00 2020 +0200
Branches: master
https://developer.blender.org/rB637a5c964a01f5e8733e972cb8a30341eb91058e
BKE: Fix compiling with clang-tidy and readability-non-const-parameter
===================================================================
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 a42f24a5312..ac69b615c3f 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],
- float *voxels);
+ const float *voxels);
/* Wireframe */
diff --git a/source/blender/blenkernel/intern/volume_render.cc b/source/blender/blenkernel/intern/volume_render.cc
index 98d3617c822..ab9242ad24a 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],
- float *voxels)
+ const 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