mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 01:59:59 +02:00
force Qt registration of PerformanceManager::PerformancePreset, as it's used as a return datatype in a script-callable function (and doesn't get auto-registered)
This commit is contained in:
parent
0bce0668f7
commit
4d6889a677
1 changed files with 5 additions and 1 deletions
|
@ -19,6 +19,10 @@
|
|||
|
||||
PerformanceManager::PerformanceManager()
|
||||
{
|
||||
static std::once_flag registry_flag;
|
||||
std::call_once(registry_flag, [] {
|
||||
qRegisterMetaType<PerformanceManager::PerformancePreset>("PerformanceManager::PerformancePreset");
|
||||
});
|
||||
setPerformancePreset((PerformancePreset)_performancePresetSetting.get());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue