Cleanup: Fix clang-tidy warnings: [readability-else-after-return]
This commit is contained in:
@@ -5244,11 +5244,11 @@ static void lineart_gpencil_generate(LineartCache *cache,
|
||||
(!(ec->shadow_mask_bits & LRT_SHADOW_MASK_ILLUMINATED)))) {
|
||||
continue;
|
||||
}
|
||||
else if ((shaodow_selection == LRT_SHADOW_FILTER_SHADED &&
|
||||
(!(ec->shadow_mask_bits & LRT_SHADOW_MASK_SHADED)))) {
|
||||
if ((shaodow_selection == LRT_SHADOW_FILTER_SHADED &&
|
||||
(!(ec->shadow_mask_bits & LRT_SHADOW_MASK_SHADED)))) {
|
||||
continue;
|
||||
}
|
||||
else if (shaodow_selection == LRT_SHADOW_FILTER_ILLUMINATED_ENCLOSED_SHAPES) {
|
||||
if (shaodow_selection == LRT_SHADOW_FILTER_ILLUMINATED_ENCLOSED_SHAPES) {
|
||||
uint32_t test_bits = ec->shadow_mask_bits & LRT_SHADOW_TEST_SHAPE_BITS;
|
||||
if ((test_bits != LRT_SHADOW_MASK_ILLUMINATED) &&
|
||||
(test_bits != (LRT_SHADOW_MASK_SHADED | LRT_SHADOW_MASK_ILLUMINATED_SHAPE))) {
|
||||
|
@@ -1292,16 +1292,12 @@ bool RE_engine_gpu_context_enable(RenderEngine *engine)
|
||||
DRW_render_context_enable(engine->re);
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
if (engine->gpu_context) {
|
||||
BLI_mutex_lock(&engine->gpu_context_mutex);
|
||||
WM_opengl_context_activate(engine->gpu_context);
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
if (engine->gpu_context) {
|
||||
BLI_mutex_lock(&engine->gpu_context_mutex);
|
||||
WM_opengl_context_activate(engine->gpu_context);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void RE_engine_gpu_context_disable(RenderEngine *engine)
|
||||
|
Reference in New Issue
Block a user