From 1685b13f4ab35e1208621b30657c83e8a53e3d3a Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Wed, 14 Oct 2015 15:11:54 +0200 Subject: [PATCH] Mesh edition fix - When validating an edition of mesh, all the items of the scene became invisible. This came from a setVisible(false) in the scene_polyhedron_edit_item's destructor that was put there to fix a segfault taht has disappeared since. - When validating an edition, the modifications were not displayed on the polyhedron_item. This was because an invalidate_buffers() that was lacking. --- Polyhedron/demo/Polyhedron/Scene_edit_polyhedron_item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Polyhedron/demo/Polyhedron/Scene_edit_polyhedron_item.cpp b/Polyhedron/demo/Polyhedron/Scene_edit_polyhedron_item.cpp index 5ee010cd804..05d4dd1f3a3 100644 --- a/Polyhedron/demo/Polyhedron/Scene_edit_polyhedron_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_edit_polyhedron_item.cpp @@ -116,7 +116,6 @@ Scene_edit_polyhedron_item::Scene_edit_polyhedron_item Scene_edit_polyhedron_item::~Scene_edit_polyhedron_item() { - setVisible(false); while(is_there_any_ctrl_vertices_group()) { delete_ctrl_vertices_group(false); @@ -700,6 +699,7 @@ Scene_polyhedron_item* Scene_edit_polyhedron_item::to_polyhedron_item() { Scene_polyhedron_item* poly_item_tmp = poly_item; poly_item->set_color_vector_read_only(false); own_poly_item=false; + poly_item_tmp->invalidate_buffers(); return poly_item_tmp; }