mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 11:41:17 +02:00
Workaround for Secondary camera crash
This commit is contained in:
parent
6b5d1c6191
commit
83e9b891d8
1 changed files with 8 additions and 0 deletions
|
@ -130,6 +130,10 @@ void FetchSpatialTree::configure(const Config& config) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void FetchSpatialTree::run(const RenderContextPointer& renderContext, const Inputs& inputs, ItemSpatialTree::ItemSelection& outSelection) {
|
void FetchSpatialTree::run(const RenderContextPointer& renderContext, const Inputs& inputs, ItemSpatialTree::ItemSelection& outSelection) {
|
||||||
|
if (!renderContext){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// start fresh
|
// start fresh
|
||||||
outSelection.clear();
|
outSelection.clear();
|
||||||
|
|
||||||
|
@ -142,6 +146,10 @@ void FetchSpatialTree::run(const RenderContextPointer& renderContext, const Inpu
|
||||||
RenderArgs* args = renderContext->args;
|
RenderArgs* args = renderContext->args;
|
||||||
auto& scene = renderContext->_scene;
|
auto& scene = renderContext->_scene;
|
||||||
|
|
||||||
|
if (!args) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
auto queryFrustum = args->getViewFrustum();
|
auto queryFrustum = args->getViewFrustum();
|
||||||
// Eventually use a frozen frustum
|
// Eventually use a frozen frustum
|
||||||
if (_freezeFrustum) {
|
if (_freezeFrustum) {
|
||||||
|
|
Loading…
Reference in a new issue