From 5ee9fef0384543d82bb7fc33a001af31f17a896c Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Tue, 10 Jan 2017 16:57:08 +0100 Subject: [PATCH] Indentation fix and addition of a comment --- Polyhedron/demo/Polyhedron/Scene.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Polyhedron/demo/Polyhedron/Scene.cpp b/Polyhedron/demo/Polyhedron/Scene.cpp index 0a3d41d85d1..f254d5e6208 100644 --- a/Polyhedron/demo/Polyhedron/Scene.cpp +++ b/Polyhedron/demo/Polyhedron/Scene.cpp @@ -1166,8 +1166,10 @@ void Scene::updatePrimitiveIds(CGAL::Three::Viewer_interface* viewer, CGAL::Thre Scene_print_interface_item* item= dynamic_cast(it); if(item) { + //As this function works as a toggle, the first call hides the ids and the second one shows them again, + //thereby triggering their re-computation. + item->printPrimitiveIds(viewer); item->printPrimitiveIds(viewer); - item->printPrimitiveIds(viewer); } } }