The previous code had unclear hacks to avoid updating while transforming, it was also duplicated in two functions causing an inconsistent initialization of the looptris bvhtree (which could even generate unpredictable snapping results). Now, detection update and inicializatiom of common members are contained in `snap_object_data_mesh_get` and `snap_object_data_editmesh_get`. Also, the "Hack to avoid updating while transforming" is more evident.