diff --git a/editor/script/script_text_editor.cpp b/editor/script/script_text_editor.cpp index 4384452e94..17252517e7 100644 --- a/editor/script/script_text_editor.cpp +++ b/editor/script/script_text_editor.cpp @@ -2443,14 +2443,13 @@ void ScriptTextEditor::drop_data_fw(const Point2 &p_point, const Variant &p_data String variable_name = String(node->get_name()).to_snake_case().validate_unicode_identifier(); if (use_type) { - StringName class_name = node->get_class_name(); + StringName custom_class_name; Ref