Johan Posted December 10, 2015 Report Share Posted December 10, 2015 We've started using exclusive checkouts in our Unity project, where we lock things such as materials, scenes, prefabs. However, we've noticed that there are instances where files are not saved to disc properly, and therefore not getting checked in properly. This seems to happen when you have a scene open, that is locked by someone else, edit your assets, and save. Since the scene you're currently in fails to check out and save, it appears as if it aborts the save process altogether, resulting in your other work not being saved as well. If you open another scene that you're allowed to edit, and press save, the changes are committed properly to the file and you can submit your changes. It does NOT seem to happen when you check in using the Version Control window inside Unity, so I guess that it does some explicit saving when checking in. I think it only happens if you check in using the Plastic GUI, since it does not know of the changes stored in Unity, but not yet saved to disc. Reproduction: 1. Open a scene, exclusively checked out by someone else. 2. Check out some other objects, e.g. materials, and make changes. 3. Try to save, you will get an error in the console saving, for example PlasticSCM : These items are exclusively checked out by: /Assets/MergeTest 1/Test.unity (wk:wkSpace owner:johan) UnityEditor.AssetModificationProcessorInternal:OnWillSaveAssets(String[], String[]&, String[]&, Int32) and Could not check out the following files in version control before saving: Assets/MergeTest 1/Test.unity UnityEditor.AssetModificationProcessorInternal:OnWillSaveAssets(String[], String[]&, String[]&, Int32) 4. Check in your changed assets from the Plastic SCM GUI 5. Check the Branch Explorer, you'll see the files are not committed. Alternatively, update another workspace and check if the changes are there. Note: Again, it seems to work when checking in through the Unity Version Control window, but not the Plastic GUI. I think I understand the reason why it happens, but not sure who I'm supposed to go to with this: Codice or Unity? Or does the community have some clever way around this? Link to comment Share on other sites More sharing options...
calbzam Posted December 21, 2015 Report Share Posted December 21, 2015 Hi Johan, Thanks for reporting, i will try to reproduce the problem. Regards, Carlos. Link to comment Share on other sites More sharing options...
Johan Posted January 12, 2016 Author Report Share Posted January 12, 2016 Thanks for looking into this. Any progress or findings? Link to comment Share on other sites More sharing options...
Guest Clement Posted April 14, 2017 Report Share Posted April 14, 2017 I entered an issue for it (https://plasticscmsupport.zendesk.com/hc/en-us/requests/11592) and it should be fixed with the 6.0 public release. Link to comment Share on other sites More sharing options...
manu Posted April 17, 2017 Report Share Posted April 17, 2017 That's right Clement, the "6.0.16.1013" release is having the new fix. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.