We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7473d4d commit 50e74d6Copy full SHA for 50e74d6
src/webots/nodes/WbCadShape.cpp
@@ -268,11 +268,7 @@ QStringList WbCadShape::objMaterialList(const QString &url) const {
268
if (!cleanLine.startsWith("mtllib"))
269
continue;
270
271
- cleanLine = cleanLine.replace("mtllib ", "").trimmed();
272
- cleanLine = cleanLine.replace("\"", "");
273
- materials << cleanLine.split(".mtl ", Qt::SkipEmptyParts);
274
- for (int i = 0; i < materials.size() - 1; i++) // the last item still have '.mtl'
275
- materials[i] += ".mtl";
+ materials << cleanLine.replace("mtllib ", "").replace("\"", "").trimmed();
276
}
277
} else
278
warn(tr("File '%1' cannot be read.").arg(url));
0 commit comments