add 'hasMesh' boolean variable for init mesh