From 997feea6cbfa60225bb238c8208dae7ed1bc3db8 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Tue, 20 Jan 2026 10:28:09 +0800 Subject: [PATCH] Take custom type of parent scripts into account when dropping onready variables --- editor/script/script_text_editor.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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