@@ -661,7 +661,7 @@ bool lcPiecesLibrary::OpenDirectory(const QDir& LibraryDir)
|
||||
mHasUnofficial = true;
|
||||
|
||||
bool SubFile = SubFileDirectories[DirectoryIdx];
|
||||
mPrimitives[Name] = new lcLibraryPrimitive((strchr(PrimitiveDirectories[DirectoryIdx], '/') + 1) + FileString, LC_NUM_ZIPFILES, 0, !SubFile && (memcmp(Name, "STU", 3) == 0), SubFile);
|
||||
mPrimitives[Name] = new lcLibraryPrimitive(QByteArray(strchr(PrimitiveDirectories[DirectoryIdx], '/') + 1) + FileString, LC_NUM_ZIPFILES, 0, !SubFile && (memcmp(Name, "STU", 3) == 0), SubFile);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -54,7 +54,7 @@ static bool lcLoadLDrawXML(std::map<int, int>& MaterialTable, std::map<int, std:
|
||||
QString LDrawID = Element.attribute(QLatin1String("ldraw"));
|
||||
int LegoID = Element.attribute(QLatin1String("lego")).toInt();
|
||||
|
||||
BrickTable.insert(std::make_pair(LegoID, std::move(LDrawID.toStdString())));
|
||||
BrickTable.insert(std::make_pair(LegoID, LDrawID.toStdString()));
|
||||
}
|
||||
else if (ElementName == QLatin1String("Transformation"))
|
||||
{
|
||||
@@ -72,7 +72,7 @@ static bool lcLoadLDrawXML(std::map<int, int>& MaterialTable, std::map<int, std:
|
||||
AxisAngle[2] = Element.attribute(QLatin1String("az")).toFloat();
|
||||
AxisAngle[3] = Element.attribute(QLatin1String("angle")).toFloat();
|
||||
|
||||
TransformTable.insert(std::make_pair(std::move(LDrawID.toStdString()), std::make_pair(Translation, AxisAngle)));
|
||||
TransformTable.insert(std::make_pair(LDrawID.toStdString(), std::make_pair(Translation, AxisAngle)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -121,6 +121,7 @@ macx {
|
||||
library.path = Contents/Resources
|
||||
|
||||
QMAKE_BUNDLE_DATA += document_icon library
|
||||
DEFINES += LC_DISABLE_UPDATE_CHECK=1
|
||||
}
|
||||
|
||||
SOURCES += common/view.cpp \
|
||||
|
||||
@@ -28,7 +28,7 @@ public:
|
||||
public slots:
|
||||
void DownloadFinished(QNetworkReply* Reply);
|
||||
void on_SearchButton_clicked();
|
||||
void accept();
|
||||
void accept() override;
|
||||
void Finished(int Result);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user