public void RefreshGeometry(bool refresh_editor = true) { // This is a dumb way of doing things, but until it's too slow, it should be ok m_dmesh.RecalculateNormals(); gl_view[0].BuildDMeshAll(); if (refresh_editor) { this.Refresh(); } UpdateFaceCheckListFromSelected(); UpdateEditorColorsFromSelected(); UpdateLightCheckList(); UpdateLightProperties(m_dmesh.light[m_selected_light]); UpdateCountLabels(); UpdateTextureLabels(); }