mirror of https://github.com/CGAL/cgal
Fix using the fcolor pmap when there is no face color
This commit is contained in:
parent
e90842fd05
commit
0e43336bef
|
|
@ -626,11 +626,17 @@ void Scene_surface_mesh_item_priv::compute_elements(Scene_item_rendering_helper:
|
||||||
}
|
}
|
||||||
else if(is_convex)
|
else if(is_convex)
|
||||||
{
|
{
|
||||||
triangulate_convex_facet(fd, &fnormals, &fcolors.value(), nullptr, name, false);
|
if(has_fcolors)
|
||||||
|
triangulate_convex_facet(fd, &fnormals, &fcolors.value(), nullptr, name, false);
|
||||||
|
else
|
||||||
|
triangulate_convex_facet(fd, &fnormals, nullptr, nullptr, name, false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
triangulate_facet(fd, &fnormals, &fcolors.value(), nullptr, name, false);
|
if(has_fcolors)
|
||||||
|
triangulate_facet(fd, &fnormals, &fcolors.value(), nullptr, name, false);
|
||||||
|
else
|
||||||
|
triangulate_facet(fd, &fnormals, nullptr, nullptr, name, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue