QmlDesigner: Disable 3D particle systems from running on puppets

Running 3D particle systems based on their application set properties
is usually not desirable, so until we have proper solution for
controlling particle systems from UI, we disable them entirely.

Fixes: QDS-4773
Fixes: QDS-4801
Change-Id: I45682d8ac5a161a92be98fe9b0304ffb948f104f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Miikka Heikkinen
2021-08-13 16:48:39 +03:00
parent 67a86b72b7
commit aef13a5dcd

View File

@@ -535,6 +535,7 @@ QProcessEnvironment PuppetCreator::processEnvironment() const
import = QmlDesigner::Import::createLibraryImport("QtCharts", "2.0");
if (m_model->hasImport(import, true, true))
environment.set("QMLDESIGNER_FORCE_QAPPLICATION", "true");
environment.set("QT_QUICK3D_DISABLE_PARTICLE_SYSTEMS", "1");
#endif
QStringList importPaths = m_model->importPaths();