Author Topic: Can't remove sprite from atlas in 2.6.4  (Read 6773 times)

juggernate

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 21
    • View Profile
Can't remove sprite from atlas in 2.6.4
« on: August 13, 2013, 08:23:01 PM »
I need to remove a sprite from an atlas...but when I click the X, then the red "Delete" button, I get the "Operation Canceled" popup that says "The selected sprites can't fit into the atlas...". But I'm just trying to remove, not add anything.

I have tried checking/unchecking the options in the Atlas maker and tried deleting different sprites, but I still get the same error.

I just updated to 2.6.4, but I haven't tried this operation for a few versions so I don't know if it is a new issue.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Can't remove sprite from atlas in 2.6.4
« Reply #1 on: August 13, 2013, 08:29:02 PM »
Sounds like even after removing the sprite your atlas is still too big for the target device.

Switch your target platform to PC and try again.

juggernate

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 21
    • View Profile
Re: Can't remove sprite from atlas in 2.6.4
« Reply #2 on: August 13, 2013, 08:45:14 PM »
I'm targeting iOS (and Android). I have a 2048 atlas and that has been working on my devices. Why would removing a sprite from the atlas make it bigger?

I changed target to pc/mac like you said and then I could delete the sprite, resulting in an atlas of the same 2048 size, then I could change the target back to iOS and it appears to work fine.

Thanks for the workaround  :) , but it seems a bit tedious to have to change targets just to delete a sprite  :(

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Can't remove sprite from atlas in 2.6.4
« Reply #3 on: August 13, 2013, 08:51:58 PM »
Hmm... strange.

juggernate

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 21
    • View Profile
Re: Can't remove sprite from atlas in 2.6.4
« Reply #4 on: August 13, 2013, 08:59:21 PM »
I can't make a new one either with all the same sprites (minus what I'm trying to remove). If I target android or ios, it seems to be limited to 1024?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Can't remove sprite from atlas in 2.6.4
« Reply #5 on: August 13, 2013, 09:06:00 PM »
If you have GLES 1.1 / ARMv6 targeted, then yes -- the limit is 1024x1024.

juggernate

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 21
    • View Profile
Re: Can't remove sprite from atlas in 2.6.4
« Reply #6 on: August 13, 2013, 10:00:54 PM »
Ah ok, that was it. I had es1.1 for the Android target and changed it to 2.0 (though I already had 2.0 for iOS which was my active target)
Thanks!