mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Now only drawing navmesh if selected + properly serialized
This commit is contained in:
@@ -367,11 +367,11 @@ public:
|
||||
Nuake::NavManager::Get().PushMesh(mesh, transformComponent.GetGlobalTransform());
|
||||
}
|
||||
}
|
||||
|
||||
auto recastConfig = RecastConfig(component);
|
||||
recastConfig.Position = volumeTransformComponent.GetGlobalPosition();
|
||||
NavManager::Get().BuildNavMesh(std::move(recastConfig));
|
||||
}
|
||||
|
||||
auto recastConfig = RecastConfig(component);
|
||||
recastConfig.Position = volumeTransformComponent.GetGlobalPosition();
|
||||
component.NavMeshData = NavManager::Get().BuildNavMesh(std::move(recastConfig));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user