mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
clang-format: Enable BreakBeforeTernaryOperators
clang-format keeps breaking the way it handles break *after* ternary operators, so I give up and go with the only style they seem to actually test.
This commit is contained in:
parent
1b65550ec7
commit
87c80f529f
13 changed files with 54 additions and 64 deletions
|
@ -352,9 +352,9 @@ void CurveEditor::open_context_menu(Vector2 pos) {
|
|||
|
||||
_context_menu->add_check_item(TTR("Linear"), CONTEXT_LINEAR);
|
||||
|
||||
bool is_linear = _selected_tangent == TANGENT_LEFT ?
|
||||
_curve_ref->get_point_left_mode(_selected_point) == Curve::TANGENT_LINEAR :
|
||||
_curve_ref->get_point_right_mode(_selected_point) == Curve::TANGENT_LINEAR;
|
||||
bool is_linear = _selected_tangent == TANGENT_LEFT
|
||||
? _curve_ref->get_point_left_mode(_selected_point) == Curve::TANGENT_LINEAR
|
||||
: _curve_ref->get_point_right_mode(_selected_point) == Curve::TANGENT_LINEAR;
|
||||
|
||||
_context_menu->set_item_checked(_context_menu->get_item_index(CONTEXT_LINEAR), is_linear);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue