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
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-01-07 03:38:08 +0300
committerCampbell Barton <campbell@blender.org>2022-01-07 06:16:26 +0300
commit3d3bc748849834ef74563deb603ab43859cffeeb (patch)
treede74ce4722b2cb032c22dbc090a15dd2e172c29b /source/blender/render/RE_bake.h
parentbb69c19f08ac681d4386325e4318ebfbef2e9531 (diff)
Cleanup: remove redundant const qualifiers for POD types
MSVC used to warn about const mismatch for arguments passed by value. Remove these as newer versions of MSVC no longer show this warning.
Diffstat (limited to 'source/blender/render/RE_bake.h')
-rw-r--r--source/blender/render/RE_bake.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/source/blender/render/RE_bake.h b/source/blender/render/RE_bake.h
index b2c44e051d1..43d3b5b323c 100644
--- a/source/blender/render/RE_bake.h
+++ b/source/blender/render/RE_bake.h
@@ -81,25 +81,25 @@ bool RE_bake_has_engine(const struct Render *re);
bool RE_bake_engine(struct Render *re,
struct Depsgraph *depsgraph,
struct Object *object,
- const int object_id,
+ int object_id,
const BakePixel pixel_array[],
const BakeTargets *targets,
- const eScenePassType pass_type,
- const int pass_filter,
+ eScenePassType pass_type,
+ int pass_filter,
float result[]);
/* bake.c */
-int RE_pass_depth(const eScenePassType pass_type);
+int RE_pass_depth(eScenePassType pass_type);
bool RE_bake_pixels_populate_from_objects(struct Mesh *me_low,
BakePixel pixel_array_from[],
BakePixel pixel_array_to[],
BakeHighPolyData highpoly[],
- const int tot_highpoly,
+ int tot_highpoly,
const size_t num_pixels,
- const bool is_custom_cage,
- const float cage_extrusion,
- const float max_ray_distance,
+ bool is_custom_cage,
+ float cage_extrusion,
+ float max_ray_distance,
float mat_low[4][4],
float mat_cage[4][4],
struct Mesh *me_cage);
@@ -112,11 +112,11 @@ void RE_bake_pixels_populate(struct Mesh *me,
void RE_bake_mask_fill(const BakePixel pixel_array[], const size_t num_pixels, char *mask);
-void RE_bake_margin(struct ImBuf *ibuf, char *mask, const int margin);
+void RE_bake_margin(struct ImBuf *ibuf, char *mask, int margin);
void RE_bake_normal_world_to_object(const BakePixel pixel_array[],
const size_t num_pixels,
- const int depth,
+ int depth,
float result[],
struct Object *ob,
const eBakeNormalSwizzle normal_swizzle[3]);
@@ -126,18 +126,18 @@ void RE_bake_normal_world_to_object(const BakePixel pixel_array[],
*/
void RE_bake_normal_world_to_tangent(const BakePixel pixel_array[],
const size_t num_pixels,
- const int depth,
+ int depth,
float result[],
struct Mesh *me,
const eBakeNormalSwizzle normal_swizzle[3],
float mat[4][4]);
void RE_bake_normal_world_to_world(const BakePixel pixel_array[],
const size_t num_pixels,
- const int depth,
+ int depth,
float result[],
const eBakeNormalSwizzle normal_swizzle[3]);
-void RE_bake_ibuf_clear(struct Image *image, const bool is_tangent);
+void RE_bake_ibuf_clear(struct Image *image, bool is_tangent);
#ifdef __cplusplus
}