Cleanup: Clang-tidy bugprone-redundant-branch-condition
No functional change.
This commit is contained in:
parent
10e2b77121
commit
f76d9de7ed
|
@ -4384,7 +4384,7 @@ void psys_get_particle_on_path(ParticleSimulationData *sim,
|
|||
t = psys_get_child_time(psys, cpa, -state->time, NULL, NULL);
|
||||
}
|
||||
|
||||
if (totchild && part->childtype == PART_CHILD_FACES) {
|
||||
if (part->childtype == PART_CHILD_FACES) {
|
||||
/* part->parents could still be 0 so we can't test with totparent */
|
||||
between = 1;
|
||||
}
|
||||
|
|
|
@ -1019,10 +1019,10 @@ int view3d_opengl_select(ViewContext *vc,
|
|||
}
|
||||
|
||||
if (is_pick_select) {
|
||||
if (is_pick_select && select_mode == VIEW3D_SELECT_PICK_NEAREST) {
|
||||
if (select_mode == VIEW3D_SELECT_PICK_NEAREST) {
|
||||
gpu_select_mode = GPU_SELECT_PICK_NEAREST;
|
||||
}
|
||||
else if (is_pick_select && select_mode == VIEW3D_SELECT_PICK_ALL) {
|
||||
else if (select_mode == VIEW3D_SELECT_PICK_ALL) {
|
||||
gpu_select_mode = GPU_SELECT_PICK_ALL;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue