Jump to content

Git pulled files are not reimported by editor


photo

Recommended Posts

Hi, we are facing a small issue with Git and .runtimes/ files. Our programmers make mock assets in order to implement application logic. Then they commit these assets to repository and designers only need to pull them and replace that files. When our designers pull the content and update the asset files (.png, .fbx...) they cannot see the changes because editor does not detect that files have changed and runtime files are not reimported, so we have to manually select them and press 'reimport'.

Then, when designers push the updated files, our programmers cannot see the changes and must reimport them manually again.

It happens with all files that are commited, pulled, replaced by another one with same name and pushed. When the amount of files pulled is big, is hard to search them in asset browser without skipping some of them. Is this an expected behaviour? Maybe we are doing something wrong...

Regards, Javier

Edited by javier.serrano
Link to comment

Hi Javier,

Editor should process files if:

  • mtime (modification time) is changed
    OR
  • size is changed

Could you please check if they are actually different?

If I understand you correctly, your pipeline currently is:

  1. User1 and User 2 opens Editor2 and work with it;
  2. After 5 minutes of work files 1.png and 2.png are modified (Editor2 is working in background)
  3. User1 pushing changes (Editor2 is working in background):
    • 1.png
    • 2.png
    • 1.meta
    • 2.meta
  4. User2 pulling changes from GIT (Editor2 is working in background);

 

  • Expected behavior:
    • Modified files will be automatically updated
  • Actual behavior:
    • Nothing changes

Is that correct?

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment

Hello Javier,

Please also note that .runtimes folder gets validated and updated only on start of Editor2, so if you pull only .meta file or both .meta & .runtimes without changing source asset, the will be no reimport until restarting the editor. Correct workflow for that case is to close Editor 2 then pull then start Editor 2. If you change the source asset you can pull without closing the Editor2, all the changes should update properly

Thanks

Link to comment
  • 3 weeks later...
×
×
  • Create New...