Cleanup: Silence clang-tidy warnings.

This commit is contained in:
Jeroen Bakker 2021-12-08 09:52:38 +01:00
parent 4f48b2992b
commit a7b64a714d
3 changed files with 4 additions and 4 deletions

View File

@ -1499,7 +1499,7 @@ static void make_duplis_particle_system(const DupliContext *ctx, ParticleSystem
else {
/* First key. */
state.time = ctime;
if (psys_get_particle_state(&sim, a, &state, 0) == 0) {
if (psys_get_particle_state(&sim, a, &state, false) == 0) {
continue;
}

View File

@ -45,7 +45,7 @@ void ColorCurveOperation::init_execution()
input_black_program_ = this->get_input_socket_reader(2);
input_white_program_ = this->get_input_socket_reader(3);
BKE_curvemapping_premultiply(curve_mapping_, 0);
BKE_curvemapping_premultiply(curve_mapping_, false);
}
void ColorCurveOperation::execute_pixel_sampled(float output[4],
@ -145,7 +145,7 @@ void ConstantLevelColorCurveOperation::init_execution()
input_fac_program_ = this->get_input_socket_reader(0);
input_image_program_ = this->get_input_socket_reader(1);
BKE_curvemapping_premultiply(curve_mapping_, 0);
BKE_curvemapping_premultiply(curve_mapping_, false);
BKE_curvemapping_set_black_white(curve_mapping_, black_, white_);
}

View File

@ -112,7 +112,7 @@ void ABCPointsWriter::do_write(HierarchyContext &context)
}
state.time = DEG_get_ctime(args_.depsgraph);
if (psys_get_particle_state(&sim, p, &state, 0) == 0) {
if (psys_get_particle_state(&sim, p, &state, false) == 0) {
continue;
}