Port colored OBJ import pipeline from BambuStudio

This commit is contained in:
SoftFever
2026-08-23 22:11:49 +08:00
parent 94a1cd6c93
commit b1e3cdc666
9 changed files with 893 additions and 297 deletions
+3
View File
@@ -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(); });
}