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:
parent
07bc4e2f96
commit
0ee0fa42e6
683 changed files with 22803 additions and 12225 deletions
|
|
@ -38,10 +38,11 @@ void MultiMeshInstance3D::_bind_methods() {
|
|||
|
||||
void MultiMeshInstance3D::set_multimesh(const Ref<MultiMesh> &p_multimesh) {
|
||||
multimesh = p_multimesh;
|
||||
if (multimesh.is_valid())
|
||||
if (multimesh.is_valid()) {
|
||||
set_base(multimesh->get_rid());
|
||||
else
|
||||
} else {
|
||||
set_base(RID());
|
||||
}
|
||||
}
|
||||
|
||||
Ref<MultiMesh> MultiMeshInstance3D::get_multimesh() const {
|
||||
|
|
@ -53,10 +54,11 @@ Vector<Face3> MultiMeshInstance3D::get_faces(uint32_t p_usage_flags) const {
|
|||
}
|
||||
|
||||
AABB MultiMeshInstance3D::get_aabb() const {
|
||||
if (multimesh.is_null())
|
||||
if (multimesh.is_null()) {
|
||||
return AABB();
|
||||
else
|
||||
} else {
|
||||
return multimesh->get_aabb();
|
||||
}
|
||||
}
|
||||
|
||||
MultiMeshInstance3D::MultiMeshInstance3D() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue