Fix crash and only change draw mode of selected meshes

Merged Max Lyon requested to merge fix_crash into master

Merge request reports