mirror of
https://github.com/godotengine/godot.git
synced 2026-01-08 00:25:01 +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:
@@ -103,8 +103,9 @@ void Gradient::set_offsets(const Vector<float> &p_offsets) {
|
||||
}
|
||||
|
||||
void Gradient::set_colors(const Vector<Color> &p_colors) {
|
||||
if (points.size() < p_colors.size())
|
||||
if (points.size() < p_colors.size()) {
|
||||
is_sorted = false;
|
||||
}
|
||||
points.resize(p_colors.size());
|
||||
for (int i = 0; i < points.size(); i++) {
|
||||
points.write[i].color = p_colors[i];
|
||||
|
||||
Reference in New Issue
Block a user