Page MenuHome

Reloading 'text' file in 'Scripting' marks the file as modified
Closed, ResolvedPublic


System Information
Operating system: Windows 10
Graphics card: GTX 1080 Ti

Blender Version
Blender 2.80 (sub 75) (hash f6cb5f54494e built 2019-07-29 09:44 AM)

Short description of error
When for example Python script file is linked to Blender workspace as 'text' object, (e.g. by using 'Scripting' -> 'open text') then the original file is modified on the disk outside of Blender, Blender detects it when getting focus and shows a red "book" icon which offers "Reload" | "Make internal" | "Ignore".
When "Reload" is selected, the text object is updated with the new file content, but at the same time marked as modified (asterisk next to the file name in the status bar of the Scripting window).

The only way to "unmodify" it is to save the file back (Alt+S on Windows).

I expect that reloading from the disk should not mark the file with asterisk, which I read as the file has been modified, because the reload should guarantee the opposite - the file in Blender and on the disk are exactly the same.

Exact steps for others to reproduce the error

  • Add text file via Scripting -> open text
  • Modify the file outside Blender
  • Choose "Reload from the disk"
  • Check the status in the status bar.