6Merge branch 'fix-navigation-crash' of https://github.com/RuanLucasGD/FlaxEngine into RuanLucasGD-fix-navigation-crash
This commit is contained in:
@@ -1067,6 +1067,12 @@ void NavMeshBuilder::Update()
|
|||||||
|
|
||||||
void NavMeshBuilder::Build(Scene* scene, float timeoutMs)
|
void NavMeshBuilder::Build(Scene* scene, float timeoutMs)
|
||||||
{
|
{
|
||||||
|
if (!scene)
|
||||||
|
{
|
||||||
|
LOG(Warning, "Could not generate navmesh without scene.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Early out if scene is not using navigation
|
// Early out if scene is not using navigation
|
||||||
if (scene->Navigation.Volumes.IsEmpty())
|
if (scene->Navigation.Volumes.IsEmpty())
|
||||||
{
|
{
|
||||||
@@ -1098,6 +1104,12 @@ void NavMeshBuilder::Build(Scene* scene, float timeoutMs)
|
|||||||
|
|
||||||
void NavMeshBuilder::Build(Scene* scene, const BoundingBox& dirtyBounds, float timeoutMs)
|
void NavMeshBuilder::Build(Scene* scene, const BoundingBox& dirtyBounds, float timeoutMs)
|
||||||
{
|
{
|
||||||
|
if (!scene)
|
||||||
|
{
|
||||||
|
LOG(Warning, "Could not generate navmesh without scene.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Early out if scene is not using navigation
|
// Early out if scene is not using navigation
|
||||||
if (scene->Navigation.Volumes.IsEmpty())
|
if (scene->Navigation.Volumes.IsEmpty())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user