Browse Source

Merge pull request #77849 from TokageItLab/add-spring-tween-to-track-editor

Add spring tween to `AnimationTrackEditor`
Yuri Sizov 2 năm trước cách đây
mục cha
commit
2cec7e9ca6
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      editor/animation_track_editor.cpp

+ 1 - 0
editor/animation_track_editor.cpp

@@ -6720,6 +6720,7 @@ AnimationTrackEditor::AnimationTrackEditor() {
 	transition_selection->add_item(TTR("Circ", "Transition Type"), Tween::TRANS_CIRC);
 	transition_selection->add_item(TTR("Bounce", "Transition Type"), Tween::TRANS_BOUNCE);
 	transition_selection->add_item(TTR("Back", "Transition Type"), Tween::TRANS_BACK);
+	transition_selection->add_item(TTR("Spring", "Transition Type"), Tween::TRANS_SPRING);
 	transition_selection->select(Tween::TRANS_LINEAR); // Default
 	transition_selection->set_auto_translate(false); // Translation context is needed.
 	ease_selection = memnew(OptionButton);