From c059ee5be3f9014ca433d9d6437b464909f3f4e4 Mon Sep 17 00:00:00 2001 From: ange-clement Date: Thu, 7 Sep 2023 10:06:25 +0200 Subject: [PATCH] Updated scene mesh creation The color is initialized to the base item's color. --- Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin.cpp index 59c687fb8a4..ca47e02782a 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin.cpp @@ -1037,7 +1037,7 @@ treat_result(Scene_item& source_item, float((bbox.ymin() + bbox.ymax())/2.f), float((bbox.zmin() + bbox.zmax())/2.f)); - result_item->setColor(default_mesh_color); + result_item->setColor(source_item.color()); result_item->setRenderingMode(source_item.renderingMode()); result_item->set_data_item(&source_item);