pEditor->UI()
i want to say SetScope(pEditor);UI()
auto UI = [pEditor]() -> CUI* { return pEditor->UI(); };
FlagModified
each frame, mainly when changing the color property. However, changing the color of a tiles layer does not affect the automapper, so it should not be ran when having the auto button enabled. This PR fixes those problems by only calling FlagModified
when changing a property that may affect the automapper (width, height, shift, image and automapper config).
Also, I added more cases for undoing auto automap: changing any of the proper...https://cdn.discordapp.com/attachments/293493549758939136/1205844083457916958/image.png
https://cdn.discordapp.com/attachments/293493549758939136/1205844443756761118/image.png
to this https://matrix-client.matrix.org/_matrix/media/r0/download/ddnet.org/15rGDfO7E6swU4VEi5UDkyk1NaMcN4uj