Author Topic: Subversion missing Atlas changes  (Read 4284 times)

burtonposey

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Subversion missing Atlas changes
« on: August 08, 2012, 12:30:43 AM »
We just started using SVN for our project, but my artist told me his UI looked funky when he updated. After studying the problem for quite a while, it seems the problem is the Atlas prefabs are never getting marked as updated.

I have a workaround, which is kinda lame. I take the atlas, drag it into the scene and add an empty GameObject to it as a child. Then, I hit apply to change the prefab. Once I save the scene, SVN now picks up on it as being changed. I can then remove the instance from the scene. If you remove the empty GO before you commit, Unity is smart enough to see that it's the same definition it started with and will no longer consider it as modified.

There's no setting I found that I could make on the Atlas itself that would mark it as changed, which is unfortunate. Wonder if there's a dummy value or a checkbox that could be added to just toggle one way or the other to get the atlas marked as changed?

Figured I would share this. I was puzzled when my artist said my update screwed up the UI. At this point I realized that though I had updated the Atlas, the prefab itself was not showing it was changed (though it had new atlas positions for all of the sprites). Any idea how this could be remedied?

Thanks and take care,
Burton

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Subversion missing Atlas changes
« Reply #1 on: August 08, 2012, 01:23:13 AM »
You need to hit Ctrl+S to actually save it after modifying it. Until you physically have unity save the current state, all prefab changes exist only in memory.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Subversion missing Atlas changes
« Reply #2 on: August 08, 2012, 02:06:13 AM »
You have to save project to be sure that it's updated properly.

burtonposey

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: Subversion missing Atlas changes
« Reply #3 on: August 08, 2012, 11:22:07 AM »
Awesome. That works great. I appreciate the help.