mirror of
https://github.com/lubosz/overte.git
synced 2025-04-06 03:22:10 +02:00
Delay initializing shared pointers
This commit is contained in:
parent
059600e8d4
commit
35b4c44e9a
1 changed files with 7 additions and 3 deletions
|
@ -1007,9 +1007,6 @@ Application::Application(
|
|||
_logger(new FileLogger(this)),
|
||||
#endif
|
||||
_previousSessionCrashed(setupEssentials(parser, false)),
|
||||
_entitySimulation(std::make_shared<PhysicalEntitySimulation>()),
|
||||
_physicsEngine(std::make_shared<PhysicsEngine>(Vectors::ZERO)),
|
||||
_entityClipboard(std::make_shared<EntityTree>()),
|
||||
_previousScriptLocation("LastScriptLocation", DESKTOP_LOCATION),
|
||||
_fieldOfView("fieldOfView", DEFAULT_FIELD_OF_VIEW_DEGREES),
|
||||
_hmdTabletScale("hmdTabletScale", DEFAULT_HMD_TABLET_SCALE_PERCENT),
|
||||
|
@ -1046,6 +1043,13 @@ void Application::initialize(const QCommandLineParser &parser) {
|
|||
//setupEssentials(parser, _previousSessionCrashed);
|
||||
qCDebug(interfaceapp) << "Initializing application";
|
||||
|
||||
_entitySimulation = std::make_shared<PhysicalEntitySimulation>();
|
||||
_physicsEngine = std::make_shared<PhysicsEngine>(Vectors::ZERO);
|
||||
_entityClipboard = std::make_shared<EntityTree>();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
auto steamClient = PluginManager::getInstance()->getSteamClientPlugin();
|
||||
setProperty(hifi::properties::STEAM, (steamClient && steamClient->isRunning()));
|
||||
|
|
Loading…
Reference in a new issue