diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-09-17 09:30:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-17 09:30:08 +0200 |
commit | 44b1143f7bab84e3ce5c14406b908daf971e3745 (patch) | |
tree | 6730b85ed21e5e6aa077dd18415f8b3274ab03a1 | |
parent | 60d67f93c6757834be912a48f2ca23b31a69ad5f (diff) | |
parent | e5406ba952085985d1269a0dff9112c138be6bff (diff) |
Merge pull request #52759 from Calinou/3d-editor-gizmo-no-name-warning
-rw-r--r-- | editor/plugins/node_3d_editor_gizmos.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/plugins/node_3d_editor_gizmos.cpp b/editor/plugins/node_3d_editor_gizmos.cpp index c2ba987cd7..7b9fb56c06 100644 --- a/editor/plugins/node_3d_editor_gizmos.cpp +++ b/editor/plugins/node_3d_editor_gizmos.cpp @@ -1003,7 +1003,9 @@ String EditorNode3DGizmoPlugin::get_gizmo_name() const { if (get_script_instance() && get_script_instance()->has_method("_get_gizmo_name")) { return get_script_instance()->call("_get_gizmo_name"); } - return TTR("Nameless gizmo"); + + WARN_PRINT_ONCE("A 3D editor gizmo has no name defined (it will appear as \"Unnamed Gizmo\" in the \"View > Gizmos\" menu). To resolve this, override the `_get_gizmo_name()` function to return a String in the script that extends EditorNode3DGizmoPlugin."); + return TTR("Unnamed Gizmo"); } int EditorNode3DGizmoPlugin::get_priority() const { |