diff options
author | Svenn-Arne Dragly <s@dragly.com> | 2018-11-19 22:15:35 +0100 |
---|---|---|
committer | Andy Nichols <andy.nichols@qt.io> | 2018-11-27 09:06:58 +0000 |
commit | 11ec833a0d21b60abbcfad0d1224fbe7ccad0682 (patch) | |
tree | c90b70990cab2d446ca481c9e3ce84333f04024f /src/runtime/api/q3dswidget.cpp | |
parent | 96a5c4a6faa0bf5c554cd10f7196ecc22127c8fa (diff) |
Dragon: Replace public API to enable Dragon with environment variable
This API will not make any sense in the future, when there is only one
aspect to choose from. The Dragon render aspect can in the meantime
be enabled by setting the environment variable Q3DS_DRAGON to a non-zero
number (like 1).
Change-Id: I9e95347a1eb9d75bbeaa6f813260ce5e718230b4
Reviewed-by: Svenn-Arne Dragly <svenn-arne.dragly@qt.io>
Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/runtime/api/q3dswidget.cpp')
-rw-r--r-- | src/runtime/api/q3dswidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/api/q3dswidget.cpp b/src/runtime/api/q3dswidget.cpp index 6eded69..352218b 100644 --- a/src/runtime/api/q3dswidget.cpp +++ b/src/runtime/api/q3dswidget.cpp @@ -354,7 +354,7 @@ void Q3DSWidgetPrivate::createEngine() Q3DSEngine::Flags flags = Q3DSEngine::WithoutRenderAspect; if (sourceFlags.testFlag(Q3DSPresentationController::Profiling)) flags |= Q3DSEngine::EnableProfiling; - if (sourceFlags.testFlag(Q3DSPresentationController::AwakenTheDragon)) + if (qEnvironmentVariableIntValue("Q3DS_DRAGON")) flags |= Q3DSEngine::AwakenTheDragon; engine->setFlags(flags); |