Branch: Source
Build version: 4.2.0-0+UE4 snapshot from github
After I had set up perforce integration in the editor, I tried to rename an asset.
This led to the following:
- The asset was renamed in the editor
- A new file with the ‘new’ name was created in the respective folder
- The old file was modified - it had only 2KByte afterwards
Perforce registered the new file being added, but did not flag the old file for deletion. It seems like whatever operation was conducted when the renaming happened was not the correct renaming/moving from perforce
Repro:
- Set up your editor with a perforce connection
- Create an asset
- Check in the asset
- Check out the asset
- Rename it in the editor
- Notice how it isn’t properly renamed in perforce (the old file is broken and only has 2KByte, instead of being deleted)
I also tried to find a workaround, but didn’t manage to do that yet. I tried a combination of renaming manually in perforce, and renaming the asset to the very same name in the editor, and at some point the asset stopped showing up in the asset list at all. I wasn’t able to bring it back except for by reverting all changes in perforce.