summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKurtBliss <kurtbliss3@gmail.com>2023-09-03 21:06:24 -0400
committerKurtBliss <kurtbliss3@gmail.com>2023-09-06 17:34:36 -0400
commitbb98843b612d6044901c0131fa43476ef2298d8f (patch)
tree06b16fe809dd46714720fbf8416f9154a108d2ea
parent75de1ca76871fdf7f5a9e081aa57ec0e33061107 (diff)
downloadredot-engine-bb98843b612d6044901c0131fa43476ef2298d8f.tar.gz
Fixed: TextFile's not reloading when changed from external editors
-rw-r--r--scene/resources/text_file.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/resources/text_file.h b/scene/resources/text_file.h
index f8dfd1a4c2..739ee083ce 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;