From bb98843b612d6044901c0131fa43476ef2298d8f Mon Sep 17 00:00:00 2001 From: KurtBliss Date: Sun, 3 Sep 2023 21:06:24 -0400 Subject: [PATCH] Fixed: TextFile's not reloading when changed from external editors --- scene/resources/text_file.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scene/resources/text_file.h b/scene/resources/text_file.h index f8dfd1a4c28..739ee083ced 100644 --- a/scene/resources/text_file.h +++ b/scene/resources/text_file.h @@ -41,6 +41,9 @@ private: String text; String path; +protected: + virtual bool editor_can_reload_from_file() override { return false; } + public: virtual bool has_text() const; virtual String get_text() const;