Code review changes

This commit is contained in:
Iain Mckay
2021-12-15 16:56:39 +01:00
parent 32f225c922
commit 2674086e0c
3 changed files with 1 additions and 23 deletions

View File

@@ -22,7 +22,6 @@
#include "Engine/Profiler/ProfilerCPU.h"
#include "Engine/Scripting/Script.h"
#include "Engine/Engine/Time.h"
#include "Engine/Physics/Physics.h"
#include "Engine/Scripting/ManagedCLR/MAssembly.h"
#include "Engine/Scripting/ManagedCLR/MClass.h"
#include "Engine/Scripting/ManagedCLR/MDomain.h"
@@ -779,8 +778,6 @@ bool LevelImpl::unloadScene(Scene* scene)
// Force flush deleted objects so we actually delete unloaded scene objects (prevent from reloading their managed objects, etc.)
ObjectsRemovalService::Flush();
Physics::EndPlay();
return false;
}
@@ -1031,8 +1028,6 @@ bool Level::loadScene(rapidjson_flax::Value& data, int32 engineBuild, Scene** ou
{
PROFILE_CPU_NAMED("BeginPlay");
Physics::BeginPlay();
ScopeLock lock(ScenesLock);
Scenes.Add(scene);
SceneBeginData beginData;