diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index d5085942c33..30f3748fa45 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -2682,7 +2682,7 @@ void EditorInspector::update_tree() { { const int dot = name_override.find("."); if (dot != -1) { - feature_tag = name_override.right(dot); + feature_tag = name_override.substr(dot); name_override = name_override.substr(0, dot); } }