Fix crash

master
huxingyi 2020-10-13 21:49:20 +09:30
parent 58edec3be2
commit 821285de82
17 changed files with 1 additions and 27 deletions

View File

@ -862,10 +862,7 @@ win32 {
GMP_LIBNAME = libgmp-10 GMP_LIBNAME = libgmp-10
MPFR_LIBNAME = libmpfr-4 MPFR_LIBNAME = libmpfr-4
CGAL_LIBNAME = CGAL-vc140-mt-4.13
CGAL_INCLUDEDIR = $$CGAL_DIR\include CGAL_INCLUDEDIR = $$CGAL_DIR\include
CGAL_BUILDINCLUDEDIR = $$CGAL_DIR\build\include
CGAL_LIBDIR = $$CGAL_DIR\build\lib\Release
GMP_INCLUDEDIR = $$CGAL_DIR\auxiliary\gmp\include GMP_INCLUDEDIR = $$CGAL_DIR\auxiliary\gmp\include
GMP_LIBDIR = $$CGAL_DIR\auxiliary\gmp\lib GMP_LIBDIR = $$CGAL_DIR\auxiliary\gmp\lib
MPFR_INCLUDEDIR = $$GMP_INCLUDEDIR MPFR_INCLUDEDIR = $$GMP_INCLUDEDIR
@ -875,11 +872,8 @@ win32 {
macx { macx {
GMP_LIBNAME = gmp GMP_LIBNAME = gmp
MPFR_LIBNAME = mpfr MPFR_LIBNAME = mpfr
CGAL_LIBNAME = cgal
BOOST_INCLUDEDIR = /usr/local/opt/boost/include BOOST_INCLUDEDIR = /usr/local/opt/boost/include
CGAL_INCLUDEDIR = /usr/local/opt/cgal/include CGAL_INCLUDEDIR = /usr/local/opt/cgal/include
CGAL_BUILDINCLUDEDIR = /usr/local/opt/cgal/include
CGAL_LIBDIR = /usr/local/opt/cgal/lib
GMP_INCLUDEDIR = /usr/local/opt/gmp/include GMP_INCLUDEDIR = /usr/local/opt/gmp/include
GMP_LIBDIR = /usr/local/opt/gmp/lib GMP_LIBDIR = /usr/local/opt/gmp/lib
MPFR_INCLUDEDIR = /usr/local/opt/mpfr/include MPFR_INCLUDEDIR = /usr/local/opt/mpfr/include
@ -889,11 +883,8 @@ macx {
unix:!macx { unix:!macx {
GMP_LIBNAME = gmp GMP_LIBNAME = gmp
MPFR_LIBNAME = mpfr MPFR_LIBNAME = mpfr
CGAL_LIBNAME = CGAL
BOOST_INCLUDEDIR = /usr/local/include BOOST_INCLUDEDIR = /usr/local/include
CGAL_INCLUDEDIR = /usr/local/include CGAL_INCLUDEDIR = /usr/local/include
CGAL_BUILDINCLUDEDIR = /usr/local/include
CGAL_LIBDIR = /usr/local/lib
GMP_INCLUDEDIR = /usr/local/include GMP_INCLUDEDIR = /usr/local/include
GMP_LIBDIR = /usr/local/lib GMP_LIBDIR = /usr/local/lib
MPFR_INCLUDEDIR = /usr/local/include MPFR_INCLUDEDIR = /usr/local/include
@ -909,8 +900,6 @@ INCLUDEPATH += $$MPFR_INCLUDEDIR
LIBS += -L$$MPFR_LIBDIR -l$$MPFR_LIBNAME LIBS += -L$$MPFR_LIBDIR -l$$MPFR_LIBNAME
INCLUDEPATH += $$CGAL_INCLUDEDIR INCLUDEPATH += $$CGAL_INCLUDEDIR
INCLUDEPATH += $$CGAL_BUILDINCLUDEDIR
LIBS += -L$$CGAL_LIBDIR -l$$CGAL_LIBNAME
target.path = ./ target.path = ./
INSTALLS += target INSTALLS += target

View File

@ -25,7 +25,6 @@ ContourToPartConverter::ContourToPartConverter(const QPolygonF &mainProfile,
void ContourToPartConverter::process() void ContourToPartConverter::process()
{ {
convert(); convert();
this->moveToThread(QGuiApplication::instance()->thread());
emit finished(); emit finished();
} }

View File

@ -36,7 +36,6 @@ void DocumentSaver::process()
m_turnaroundPngByteArray, m_turnaroundPngByteArray,
m_script, m_script,
m_variables); m_variables);
this->moveToThread(QGuiApplication::instance()->thread());
emit finished(); emit finished();
} }

View File

@ -121,6 +121,5 @@ void MaterialPreviewsGenerator::process()
qDebug() << "The material previews generation took" << countTimeConsumed.elapsed() << "milliseconds"; qDebug() << "The material previews generation took" << countTimeConsumed.elapsed() << "milliseconds";
this->moveToThread(QGuiApplication::instance()->thread());
emit finished(); emit finished();
} }

View File

@ -1438,7 +1438,6 @@ void MeshGenerator::process()
{ {
generate(); generate();
this->moveToThread(QGuiApplication::instance()->thread());
emit finished(); emit finished();
} }

View File

@ -48,6 +48,5 @@ void MeshResultPostProcessor::process()
{ {
poseProcess(); poseProcess();
this->moveToThread(QGuiApplication::instance()->thread());
emit finished(); emit finished();
} }

View File

@ -450,6 +450,5 @@ void MotionsGenerator::process()
qDebug() << "The motions generation took" << countTimeConsumed.elapsed() << "milliseconds"; qDebug() << "The motions generation took" << countTimeConsumed.elapsed() << "milliseconds";
this->moveToThread(QGuiApplication::instance()->thread());
emit finished(); emit finished();
} }

View File

@ -115,7 +115,6 @@ void MousePicker::pick()
void MousePicker::process() void MousePicker::process()
{ {
pick(); pick();
this->moveToThread(QGuiApplication::instance()->thread());
emit finished(); emit finished();
} }

View File

@ -58,7 +58,6 @@ void NormalAndDepthMapsGenerator::process()
generate(); generate();
m_normalMapRender->setRenderThread(QGuiApplication::instance()->thread()); m_normalMapRender->setRenderThread(QGuiApplication::instance()->thread());
m_depthMapRender->setRenderThread(QGuiApplication::instance()->thread()); m_depthMapRender->setRenderThread(QGuiApplication::instance()->thread());
this->moveToThread(QGuiApplication::instance()->thread());
emit finished(); emit finished();
} }

View File

@ -1195,8 +1195,8 @@ void PartTreeWidget::removeComponentDelayedTimer(const QUuid &componentId)
{ {
auto findTimer = m_delayedComponentTimers.find(componentId); auto findTimer = m_delayedComponentTimers.find(componentId);
if (findTimer != m_delayedComponentTimers.end()) { if (findTimer != m_delayedComponentTimers.end()) {
m_delayedComponentTimers.erase(findTimer);
findTimer->second->deleteLater(); findTimer->second->deleteLater();
m_delayedComponentTimers.erase(findTimer);
} }
} }

View File

@ -42,6 +42,5 @@ void PoseMeshCreator::process()
{ {
createMesh(); createMesh();
this->moveToThread(QGuiApplication::instance()->thread());
emit finished(); emit finished();
} }

View File

@ -68,6 +68,5 @@ void PosePreviewsGenerator::process()
qDebug() << "The pose previews generation took" << countTimeConsumed.elapsed() << "milliseconds"; qDebug() << "The pose previews generation took" << countTimeConsumed.elapsed() << "milliseconds";
this->moveToThread(QGuiApplication::instance()->thread());
emit finished(); emit finished();
} }

View File

@ -1144,6 +1144,5 @@ void RigGenerator::process()
qDebug() << "The rig generation took" << countTimeConsumed.elapsed() << "milliseconds"; qDebug() << "The rig generation took" << countTimeConsumed.elapsed() << "milliseconds";
this->moveToThread(QGuiApplication::instance()->thread());
emit finished(); emit finished();
} }

View File

@ -43,7 +43,6 @@ void SkeletonIkMover::process()
{ {
resolve(); resolve();
this->moveToThread(QGuiApplication::instance()->thread());
emit finished(); emit finished();
} }

View File

@ -736,6 +736,5 @@ void TextureGenerator::process()
{ {
generate(); generate();
this->moveToThread(QGuiApplication::instance()->thread());
emit finished(); emit finished();
} }

View File

@ -34,6 +34,5 @@ void TurnaroundLoader::process()
} else { } else {
m_resultImage = new QImage(m_inputImage.scaled(m_viewSize, Qt::KeepAspectRatio)); m_resultImage = new QImage(m_inputImage.scaled(m_viewSize, Qt::KeepAspectRatio));
} }
this->moveToThread(QGuiApplication::instance()->thread());
emit finished(); emit finished();
} }

View File

@ -144,6 +144,5 @@ void UpdatesChecker::downloadFinished(QNetworkReply *reply)
} }
} }
reply->deleteLater(); reply->deleteLater();
this->moveToThread(QGuiApplication::instance()->thread());
emit finished(); emit finished();
} }