mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-16 17:00:59 -06:00
Fix anchor-and-aim related errors
This commit is contained in:
@@ -645,6 +645,8 @@ void OpenSpaceEngine::loadSingleAsset(const std::string& assetPath) {
|
||||
}
|
||||
|
||||
_scene = std::make_unique<Scene>(std::move(sceneInitializer));
|
||||
global::renderEngine.setScene(_scene.get());
|
||||
|
||||
global::rootPropertyOwner.addPropertySubOwner(_scene.get());
|
||||
_scene->setCamera(std::make_unique<Camera>());
|
||||
Camera* camera = _scene->camera();
|
||||
@@ -661,8 +663,6 @@ void OpenSpaceEngine::loadSingleAsset(const std::string& assetPath) {
|
||||
);
|
||||
}
|
||||
|
||||
global::renderEngine.setScene(_scene.get());
|
||||
|
||||
_assetManager->removeAll();
|
||||
_assetManager->add(assetPath);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user