mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-16 21:42:43 +00:00
Port colored OBJ import pipeline from BambuStudio
This commit is contained in:
@@ -215,6 +215,9 @@ static bool has_importable_texture(const Slic3r::TexturedMesh& textured_mesh)
|
||||
if (textured_mesh.vertices.empty() || textured_mesh.indices.empty())
|
||||
return false;
|
||||
|
||||
if (!textured_mesh.precomputed_face_colors.empty())
|
||||
return true;
|
||||
|
||||
return std::any_of(textured_mesh.textures.begin(), textured_mesh.textures.end(),
|
||||
[](const Slic3r::TextureImage& texture) { return !texture.data.empty(); });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user