[BUG][EDITOR] 9 Slicing doesn't show properly

Started by Flopsy, March 25, 2021, 03:34:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Flopsy



This terrain piece in the picture is of 64x12 pixels and has the following nxmt

RESIZE_HORIZONTAL
NINE_SLICE_LEFT 2
NINE_SLICE_RIGHT 6

However it does not display properly in the editor. It is missing the right most 6 pixels. When it loads in the player, it displays correctly.

WillLem


namida

Thanks. Have locked the old topic since this is closer to the top - but it does raise an important point that this affects objects as well as terrain. (This is useful - they have seperate code for loading nine-slicing data, but share the same code for nine-sliced rendering, so this narrows down what the cause of the issue might be.)
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

namida

Fixed in commit 58c56f5. Was basically an oversight in the code where it was using some (not all) of the left side's data when it should've been using the right's.
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)