Style: Fix some badly formatted files

This commit is contained in:
Rémi Verschelde 2017-04-08 01:42:41 +02:00
parent e9b045d9e5
commit 2491754de7
7 changed files with 43 additions and 42 deletions

View file

@ -1266,8 +1266,7 @@ void SceneTreeDock::_selection_changed() {
if (EditorNode::get_singleton()->get_editor_selection()->get_selection().front()->key()->get_script().is_null()) {
button_create_script->show();
button_clear_script->hide();
}
else {
} else {
button_create_script->hide();
button_clear_script->show();
}

View file

@ -103,7 +103,6 @@ void ScriptCreateDialog::ok_pressed() {
create_new = true;
_update_controls();
}
void ScriptCreateDialog::_create_new() {

View file

@ -207,16 +207,19 @@ struct GJK {
real_t weights[4];
U mask = 0;
switch (cs.rank) {
case 2: sqdist = projectorigin(cs.c[0]->w,
case 2:
sqdist = projectorigin(cs.c[0]->w,
cs.c[1]->w,
weights, mask);
break;
case 3: sqdist = projectorigin(cs.c[0]->w,
case 3:
sqdist = projectorigin(cs.c[0]->w,
cs.c[1]->w,
cs.c[2]->w,
weights, mask);
break;
case 4: sqdist = projectorigin(cs.c[0]->w,
case 4:
sqdist = projectorigin(cs.c[0]->w,
cs.c[1]->w,
cs.c[2]->w,
cs.c[3]->w,