private void onMouseUp(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { action.UnExecute(); EditorEngine.Instance.GetActionManager().Execute(action); foreach (MultiAction aa in action.Actions) { foreach (SetTileAction a in aa.Actions) { Map map = EditorEngine.Instance.CurrentMap; MockupTileBehavior b = map.GetBehavior(a.X, a.Y); b.BehaviorId = map.Tilesets[a.TilesetIndex].Tileset.Tiles[a.TileIndex].DefaultBehavior.BehaviorId; } } action = null; } }