[DF-1172] Fix issue when tilemask editing results disappered after turning tilemask editor off
Merge pull request #213 from adebt/DF-1172_Tilemask_issue

[DF-1172] Fix issue when tilemask editing results disappered after turning tilemask editor off