Material: Expanded Python API (#13829)
Expands the Python API to allow for material creation. With test cases.
This commit is contained in:
@@ -50,6 +50,10 @@ bool LibraryBase::operator==(const LibraryBase& library) const
|
||||
QString LibraryBase::getLocalPath(const QString& path) const
|
||||
{
|
||||
QString filePath = getDirectoryPath();
|
||||
if (!(filePath.endsWith(QLatin1String("/")) || filePath.endsWith(QLatin1String("\\")))) {
|
||||
filePath += QLatin1String("/");
|
||||
}
|
||||
|
||||
QString cleanPath = QDir::cleanPath(path);
|
||||
QString prefix = QString::fromStdString("/") + getName();
|
||||
if (cleanPath.startsWith(prefix)) {
|
||||
|
||||
Reference in New Issue
Block a user