|
@@ -5302,22 +5302,26 @@ void AnimationTrackEditor::_edit_menu_pressed(int p_option) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ String track_type;
|
|
switch (animation->track_get_type(i)) {
|
|
switch (animation->track_get_type(i)) {
|
|
case Animation::TYPE_TRANSFORM:
|
|
case Animation::TYPE_TRANSFORM:
|
|
- text += " (Transform)";
|
|
|
|
|
|
+ track_type = TTR("Transform");
|
|
break;
|
|
break;
|
|
case Animation::TYPE_METHOD:
|
|
case Animation::TYPE_METHOD:
|
|
- text += " (Methods)";
|
|
|
|
|
|
+ track_type = TTR("Methods");
|
|
break;
|
|
break;
|
|
case Animation::TYPE_BEZIER:
|
|
case Animation::TYPE_BEZIER:
|
|
- text += " (Bezier)";
|
|
|
|
|
|
+ track_type = TTR("Bezier");
|
|
break;
|
|
break;
|
|
case Animation::TYPE_AUDIO:
|
|
case Animation::TYPE_AUDIO:
|
|
- text += " (Audio)";
|
|
|
|
|
|
+ track_type = TTR("Audio");
|
|
break;
|
|
break;
|
|
default: {
|
|
default: {
|
|
};
|
|
};
|
|
}
|
|
}
|
|
|
|
+ if (!track_type.empty()) {
|
|
|
|
+ text += vformat(" (%s)", track_type);
|
|
|
|
+ }
|
|
|
|
|
|
TreeItem *it = track_copy_select->create_item(troot);
|
|
TreeItem *it = track_copy_select->create_item(troot);
|
|
it->set_editable(0, true);
|
|
it->set_editable(0, true);
|