mirror of
https://github.com/godotengine/godot.git
synced 2025-10-27 19:54:27 +00:00
Style: clang-format: Disable AllowShortIfStatementsOnASingleLine
Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
This commit is contained in:
parent
03b13e0c69
commit
e956e80c1f
130 changed files with 967 additions and 511 deletions
|
|
@ -491,8 +491,10 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
|
|||
for (List<Node *>::Element *E = selection.front(); E; E = E->next()) {
|
||||
int index = E->get()->get_index();
|
||||
|
||||
if (index > highest_id) highest_id = index;
|
||||
if (index < lowest_id) lowest_id = index;
|
||||
if (index > highest_id)
|
||||
highest_id = index;
|
||||
if (index < lowest_id)
|
||||
lowest_id = index;
|
||||
|
||||
if (E->get()->get_parent() != common_parent)
|
||||
common_parent = nullptr;
|
||||
|
|
@ -501,8 +503,10 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
|
|||
if (!common_parent || (MOVING_DOWN && highest_id >= common_parent->get_child_count() - MOVING_DOWN) || (MOVING_UP && lowest_id == 0))
|
||||
break; // one or more nodes can not be moved
|
||||
|
||||
if (selection.size() == 1) editor_data->get_undo_redo().create_action(TTR("Move Node In Parent"));
|
||||
if (selection.size() > 1) editor_data->get_undo_redo().create_action(TTR("Move Nodes In Parent"));
|
||||
if (selection.size() == 1)
|
||||
editor_data->get_undo_redo().create_action(TTR("Move Node In Parent"));
|
||||
if (selection.size() > 1)
|
||||
editor_data->get_undo_redo().create_action(TTR("Move Nodes In Parent"));
|
||||
|
||||
for (int i = 0; i < selection.size(); i++) {
|
||||
Node *top_node = selection[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue