You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
Merge pull request #87887 from jtakakura/fix-unintentional-translation-in-animation-tree
Fix unintentional translations in AnimationTree
This commit is contained in:
@@ -804,6 +804,7 @@ AnimationNodeBlendSpace1DEditor::AnimationNodeBlendSpace1DEditor() {
|
|||||||
animations_menu = memnew(PopupMenu);
|
animations_menu = memnew(PopupMenu);
|
||||||
menu->add_child(animations_menu);
|
menu->add_child(animations_menu);
|
||||||
animations_menu->set_name("AddAnimations");
|
animations_menu->set_name("AddAnimations");
|
||||||
|
animations_menu->set_auto_translate(false);
|
||||||
animations_menu->connect("index_pressed", callable_mp(this, &AnimationNodeBlendSpace1DEditor::_add_animation_type));
|
animations_menu->connect("index_pressed", callable_mp(this, &AnimationNodeBlendSpace1DEditor::_add_animation_type));
|
||||||
|
|
||||||
open_file = memnew(EditorFileDialog);
|
open_file = memnew(EditorFileDialog);
|
||||||
|
|||||||
@@ -1083,6 +1083,7 @@ AnimationNodeBlendSpace2DEditor::AnimationNodeBlendSpace2DEditor() {
|
|||||||
animations_menu = memnew(PopupMenu);
|
animations_menu = memnew(PopupMenu);
|
||||||
menu->add_child(animations_menu);
|
menu->add_child(animations_menu);
|
||||||
animations_menu->set_name("AddAnimations");
|
animations_menu->set_name("AddAnimations");
|
||||||
|
animations_menu->set_auto_translate(false);
|
||||||
animations_menu->connect("index_pressed", callable_mp(this, &AnimationNodeBlendSpace2DEditor::_add_animation_type));
|
animations_menu->connect("index_pressed", callable_mp(this, &AnimationNodeBlendSpace2DEditor::_add_animation_type));
|
||||||
|
|
||||||
open_file = memnew(EditorFileDialog);
|
open_file = memnew(EditorFileDialog);
|
||||||
|
|||||||
@@ -239,6 +239,7 @@ void AnimationNodeBlendTreeEditor::update_graph() {
|
|||||||
MenuButton *mb = memnew(MenuButton);
|
MenuButton *mb = memnew(MenuButton);
|
||||||
mb->set_text(anim->get_animation());
|
mb->set_text(anim->get_animation());
|
||||||
mb->set_icon(get_editor_theme_icon(SNAME("Animation")));
|
mb->set_icon(get_editor_theme_icon(SNAME("Animation")));
|
||||||
|
mb->set_auto_translate(false);
|
||||||
mb->set_disabled(read_only);
|
mb->set_disabled(read_only);
|
||||||
Array options;
|
Array options;
|
||||||
|
|
||||||
|
|||||||
@@ -1779,6 +1779,7 @@ AnimationNodeStateMachineEditor::AnimationNodeStateMachineEditor() {
|
|||||||
animations_menu = memnew(PopupMenu);
|
animations_menu = memnew(PopupMenu);
|
||||||
menu->add_child(animations_menu);
|
menu->add_child(animations_menu);
|
||||||
animations_menu->set_name("AddAnimations");
|
animations_menu->set_name("AddAnimations");
|
||||||
|
animations_menu->set_auto_translate(false);
|
||||||
animations_menu->connect("index_pressed", callable_mp(this, &AnimationNodeStateMachineEditor::_add_animation_type));
|
animations_menu->connect("index_pressed", callable_mp(this, &AnimationNodeStateMachineEditor::_add_animation_type));
|
||||||
|
|
||||||
connect_menu = memnew(PopupMenu);
|
connect_menu = memnew(PopupMenu);
|
||||||
|
|||||||
Reference in New Issue
Block a user