mirror of https://github.com/CGAL/cgal
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.
This commit is contained in:
parent
5e768fc310
commit
1685b13f4a
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue