Skip to content

Commit

Permalink
Merge pull request #81319 from KurtBliss/Changing-text-files-in-an-ex…
Browse files Browse the repository at this point in the history
…ternal-editor-doesn't-cause-them-to-reload-in-Script-Editor

Fix TextFile not reloading when changed from external editors
  • Loading branch information
akien-mga committed Oct 2, 2023
2 parents 3cf1767 + bb98843 commit 6b70dfe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scene/resources/text_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ class TextFile : public Resource {
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;
Expand Down

0 comments on commit 6b70dfe

Please sign in to comment.