Browse Source

Merge pull request #37554 from qarmin/duplicated_add_child

Removed duplicated add_child
Rémi Verschelde 5 years ago
parent
commit
92538fcb48
1 changed files with 0 additions and 1 deletions
  1. 0 1
      editor/plugins/animation_state_machine_editor.cpp

+ 0 - 1
editor/plugins/animation_state_machine_editor.cpp

@@ -1362,7 +1362,6 @@ AnimationNodeStateMachineEditor::AnimationNodeStateMachineEditor() {
 	name_edit = memnew(LineEdit);
 	name_edit = memnew(LineEdit);
 	name_edit_popup->add_child(name_edit);
 	name_edit_popup->add_child(name_edit);
 	name_edit->set_anchors_and_margins_preset(PRESET_WIDE);
 	name_edit->set_anchors_and_margins_preset(PRESET_WIDE);
-	name_edit_popup->add_child(name_edit);
 	name_edit->connect("text_entered", callable_mp(this, &AnimationNodeStateMachineEditor::_name_edited));
 	name_edit->connect("text_entered", callable_mp(this, &AnimationNodeStateMachineEditor::_name_edited));
 	name_edit->connect("focus_exited", callable_mp(this, &AnimationNodeStateMachineEditor::_name_edited_focus_out));
 	name_edit->connect("focus_exited", callable_mp(this, &AnimationNodeStateMachineEditor::_name_edited_focus_out));