Editor: fix npc painted a non existring direction. Fix #510.
Update ChangeLog.
Merge branch 'v1.2'