Editor: fix tiles created on invisible layer. Fix #508.
Merge pull request #509 from Maxs1789/issue508

Editor: fix tiles created on invisible layer. Fix #508.