IDE: Atlas "inner padding" shouldn't affect Slice 9 GUI value

Describe the bug
I use “inner padding” parameter in atlases (read why). It works perfect with usual sprites. E.g. I can change inner padding value and it will not affect anything in sprites.

Unfortunately inner padding affects Slice 9 offsets in GUI. i.e. I should sum up real offset and inner padding while applying Slice 9 XYZW values.

Is it a bug?

To Reproduce

  1. Set Slice 9 for a GUI node.
  2. Change inner padding of your altas to a different value, for example 2px.
  3. You have to add +2px to all Slice 9 values of this GUI node, too.

Expected behavior
Inner padding shouldn’t affect Slice 9 of GUI nodes.

Defold version:

  • 1.2.167

Platforms:

  • OS: Windows 10 x64
2 Likes

Yeah, you shouldn’t have to calculate this yourself. It feels like a bug.

2 Likes