From 137691b9006aead270fa17f5eaeddba0b7c2dc42 Mon Sep 17 00:00:00 2001 From: lawnjelly Date: Tue, 1 Jul 2025 20:07:15 +0100 Subject: [PATCH] Fix inability to assign script after clearing Co-authored-by: ocean (they/them) (cherry picked from commit 287cf32ce2120502dea6d9336dfb77ca4043db2c) --- editor/editor_properties.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index c0de0c280c0..2064e22e3e4 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -30,6 +30,7 @@ #include "editor_properties.h" +#include "core/core_string_names.h" #include "editor/editor_resource_preview.h" #include "editor/filesystem_dock.h" #include "editor/project_settings_editor.h" @@ -2617,8 +2618,11 @@ void EditorPropertyResource::_resource_selected(const RES &p_resource, bool p_ed void EditorPropertyResource::_resource_changed(const RES &p_resource) { // Make visual script the correct type. Ref