mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +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:
@@ -230,8 +230,9 @@ void GeometryInstance::_notification(int p_what) {
|
||||
|
||||
void GeometryInstance::set_flag(Flags p_flag, bool p_value) {
|
||||
ERR_FAIL_INDEX(p_flag, FLAG_MAX);
|
||||
if (flags[p_flag] == p_value)
|
||||
if (flags[p_flag] == p_value) {
|
||||
return;
|
||||
}
|
||||
|
||||
flags[p_flag] = p_value;
|
||||
VS::get_singleton()->instance_geometry_set_flag(get_instance(), (VS::InstanceFlags)p_flag, p_value);
|
||||
|
||||
Reference in New Issue
Block a user