#3492 - Fix of export of toolpaths to obj
This commit is contained in:
parent
5bb9ba64c2
commit
63f8fda61d
1 changed files with 3 additions and 6 deletions
|
@ -877,13 +877,10 @@ bool can_export_to_obj(const GLVolume& volume)
|
||||||
if (!volume.is_active || !volume.is_extrusion_path)
|
if (!volume.is_active || !volume.is_extrusion_path)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (volume.indexed_vertex_array.triangle_indices.empty() && (std::min(volume.indexed_vertex_array.triangle_indices_size, volume.tverts_range.second - volume.tverts_range.first) == 0))
|
bool has_triangles = !volume.indexed_vertex_array.triangle_indices.empty() || (std::min(volume.indexed_vertex_array.triangle_indices_size, volume.tverts_range.second - volume.tverts_range.first) > 0);
|
||||||
return false;
|
bool has_quads = !volume.indexed_vertex_array.quad_indices.empty() || (std::min(volume.indexed_vertex_array.quad_indices_size, volume.qverts_range.second - volume.qverts_range.first) > 0);
|
||||||
|
|
||||||
if (volume.indexed_vertex_array.quad_indices.empty() && (std::min(volume.indexed_vertex_array.quad_indices_size, volume.qverts_range.second - volume.qverts_range.first) == 0))
|
return has_triangles || has_quads;
|
||||||
return false;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GLVolumeCollection::has_toolpaths_to_export() const
|
bool GLVolumeCollection::has_toolpaths_to_export() const
|
||||||
|
|
Loading…
Reference in a new issue