mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Style: Apply clang-tidy's readability-braces-around-statements
This commit is contained in:
@@ -620,11 +620,13 @@ int TextParagraph::hit_test(const Point2 &p_coords) const {
|
||||
const_cast<TextParagraph *>(this)->_shape_lines();
|
||||
Vector2 ofs;
|
||||
if (TS->shaped_text_get_orientation(rid) == TextServer::ORIENTATION_HORIZONTAL) {
|
||||
if (ofs.y < 0)
|
||||
if (ofs.y < 0) {
|
||||
return 0;
|
||||
}
|
||||
} else {
|
||||
if (ofs.x < 0)
|
||||
if (ofs.x < 0) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
for (int i = 0; i < lines.size(); i++) {
|
||||
if (TS->shaped_text_get_orientation(lines[i]) == TextServer::ORIENTATION_HORIZONTAL) {
|
||||
|
||||
Reference in New Issue
Block a user