mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03: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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user