瀏覽代碼

Fixed: TextFile's not reloading when changed from external editors

KurtBliss 2 年之前
父節點
當前提交
bb98843b61
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      scene/resources/text_file.h

+ 3 - 0
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;