Fix #31258: collada now selects newly added objects after import.
[blender-staging.git] / source / blender / editors / mesh / mesh_navmesh.c
index c234cf44aec74c63b9b5ab2ee6bc920126e4be3a..cc640e38fc25496a8b3999d2775915fefdd5d8ca 100644 (file)
@@ -316,6 +316,7 @@ static Object *createRepresentation(bContext *C, struct recast_polyMesh *pmesh,
        }
        else {
                obedit = base->object;
+               scene_deselect_all(scene);
                scene_select_base(scene, base);
                copy_v3_v3(obedit->loc, co);
                copy_v3_v3(obedit->rot, rot);