1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00

Style: Fix whole-line commented code

They do not play well with clang-format which aligns the `//` part
with the rest of the code block, thus producing badly indented commented code.
This commit is contained in:
Rémi Verschelde
2017-01-14 12:26:56 +01:00
parent 78e90ac60b
commit 93ab45b6b5
306 changed files with 1889 additions and 1535 deletions

View File

@@ -621,9 +621,9 @@ void AnimationTreeEditor::_draw_node(const StringName& p_node) {
#if 0
void AnimationTreeEditor::_node_param_changed() {
// anim_tree->node_set_param( click_node,property_editor->get_variant() );
// update();
// _write_anim_tree_graph();
//anim_tree->node_set_param( click_node,property_editor->get_variant() );
//update();
//_write_anim_tree_graph();
}
#endif
@@ -792,7 +792,7 @@ void AnimationTreeEditor::_gui_input(InputEvent p_event) {
renaming_edit=false;
_popup_edit_dialog();
//open editor
// _node_edit_property(click_node);
//_node_edit_property(click_node);
} break;
default:{}
}
@@ -1325,7 +1325,7 @@ void AnimationTreeEditor::_bind_methods() {
ClassDB::bind_method( "_add_menu_item", &AnimationTreeEditor::_add_menu_item );
ClassDB::bind_method( "_node_menu_item", &AnimationTreeEditor::_node_menu_item );
ClassDB::bind_method( "_gui_input", &AnimationTreeEditor::_gui_input );
// ClassDB::bind_method( "_node_param_changed", &AnimationTreeEditor::_node_param_changed );
//ClassDB::bind_method( "_node_param_changed", &AnimationTreeEditor::_node_param_changed );
ClassDB::bind_method( "_scroll_moved", &AnimationTreeEditor::_scroll_moved );
ClassDB::bind_method( "_edit_dialog_changeds", &AnimationTreeEditor::_edit_dialog_changeds );
ClassDB::bind_method( "_edit_dialog_changede", &AnimationTreeEditor::_edit_dialog_changede );
@@ -1414,8 +1414,8 @@ AnimationTreeEditor::AnimationTreeEditor() {
updating_edit=false;
edit_dialog = memnew( PopupPanel );
// edit_dialog->get_ok()->hide();
// edit_dialog->get_cancel()->hide();
//edit_dialog->get_ok()->hide();
//edit_dialog->get_cancel()->hide();
add_child(edit_dialog);
edit_option = memnew( OptionButton );
@@ -1502,8 +1502,8 @@ bool AnimationTreeEditorPlugin::handles(Object *p_object) const {
void AnimationTreeEditorPlugin::make_visible(bool p_visible) {
if (p_visible) {
// editor->hide_animation_player_editors();
// editor->animation_panel_make_visible(true);
//editor->hide_animation_player_editors();
//editor->animation_panel_make_visible(true);
button->show();
editor->make_bottom_panel_item_visible(anim_tree_editor);
anim_tree_editor->set_fixed_process(true);