diff --git a/editor/script/script_text_editor.cpp b/editor/script/script_text_editor.cpp index d3ae637b29d..54dce3584f1 100644 --- a/editor/script/script_text_editor.cpp +++ b/editor/script/script_text_editor.cpp @@ -2442,14 +2442,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