Fixed mapeditor not rendering. Had to remove some optimization though.