From 4dd8e19f791fe43491b063587a7ee7afa25303c5 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Fri, 12 Feb 2021 11:27:47 +0100 Subject: [PATCH] Fix Scene Queries to lock scene access --- Source/Engine/Level/SceneQuery.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Engine/Level/SceneQuery.h b/Source/Engine/Level/SceneQuery.h index 4dedf0b8d..245c4c8a7 100644 --- a/Source/Engine/Level/SceneQuery.h +++ b/Source/Engine/Level/SceneQuery.h @@ -3,10 +3,10 @@ #pragma once // Enables locking scenes during scene query execution can provide some safety when using scene queries from other threads but may provide stalls on a main thread -#define SCENE_QUERIES_WITH_LOCK 0 +#define SCENE_QUERIES_WITH_LOCK 1 -#include "Scene/Scene.h" #include "Level.h" +#include "Scene/Scene.h" #if SCENE_QUERIES_WITH_LOCK #include "Engine/Threading/Threading.h" #endif