summaryrefslogtreecommitdiffstats
path: root/editor/plugins/shader_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-09-19 17:13:50 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-09-19 17:13:50 +0200
commitd788205826d23f5afb0cd8fea17069784b68bc2e (patch)
tree6d843752865903287003d0df85fcf34539676b52 /editor/plugins/shader_editor_plugin.cpp
parent6a1ab24a34f85b2017e5b379bfb9b0dedfbc7417 (diff)
parent14321b8ed5e151987c0e2a0dd28d7a4e2483faba (diff)
downloadredot-engine-d788205826d23f5afb0cd8fea17069784b68bc2e.tar.gz
Merge pull request #97173 from timothyqiu/drag-preview-translation
Set auto translate mode for drag previews
Diffstat (limited to 'editor/plugins/shader_editor_plugin.cpp')
-rw-r--r--editor/plugins/shader_editor_plugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/shader_editor_plugin.cpp b/editor/plugins/shader_editor_plugin.cpp
index 6bfe78c216..6b00a2c9c5 100644
--- a/editor/plugins/shader_editor_plugin.cpp
+++ b/editor/plugins/shader_editor_plugin.cpp
@@ -614,6 +614,7 @@ Variant ShaderEditorPlugin::get_drag_data_fw(const Point2 &p_point, Control *p_f
drag_preview->add_child(tf);
}
Label *label = memnew(Label(preview_name));
+ label->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED); // Don't translate script names.
drag_preview->add_child(label);
main_split->set_drag_preview(drag_preview);