Updated scene mesh creation

The color is initialized to the base item's color.
This commit is contained in:
ange-clement 2023-09-07 10:06:25 +02:00
parent 6f8116c4d5
commit c059ee5be3
1 changed files with 1 additions and 1 deletions

View File

@ -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);