فهرست منبع

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

KurtBliss 1 سال پیش
والد
کامیت
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;