Don't set mat flag on face if we're not using materials in the config
fix submesh normal indices