Mesh only updates after closing the project