You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Style: Enforce braces around if blocks and loops
Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
This commit is contained in:
@@ -65,16 +65,21 @@ void RenderingServerRaster::_draw_margins() {
|
||||
/* FREE */
|
||||
|
||||
void RenderingServerRaster::free(RID p_rid) {
|
||||
if (RSG::storage->free(p_rid))
|
||||
if (RSG::storage->free(p_rid)) {
|
||||
return;
|
||||
if (RSG::canvas->free(p_rid))
|
||||
}
|
||||
if (RSG::canvas->free(p_rid)) {
|
||||
return;
|
||||
if (RSG::viewport->free(p_rid))
|
||||
}
|
||||
if (RSG::viewport->free(p_rid)) {
|
||||
return;
|
||||
if (RSG::scene->free(p_rid))
|
||||
}
|
||||
if (RSG::scene->free(p_rid)) {
|
||||
return;
|
||||
if (RSG::scene_render->free(p_rid))
|
||||
}
|
||||
if (RSG::scene_render->free(p_rid)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* EVENT QUEUING */
|
||||
|
||||
Reference in New Issue
Block a user