Commit Graph

124 Commits

Author SHA1 Message Date
Lauren Barnes
b4b7f96557 UEdMode initial implementation and handling by FEdModeManager
#jira UETOOL-1722
#rb none
#rnx
#fyi Ryan.Schmidt

[CL 8614167 by Lauren Barnes in Dev-Editor branch]
2019-09-10 12:01:07 -04:00
yoan stamant
a703fee91b NavigationDataHandler: prevent registration of an element that should not be registered when processing the parent chain.
One problematic scenario is when all components from an actor are unregistered and one of them is the navigation parent of the others. In this case, the parent may be unregistered before some of its children and then calls to UpdateNavOctreeParentChain from a child may queue back the unregistered parent. UpdateNavOctreeParentChain will now consider the actual status of the parent (Added or queued for add) before registering it or its children.

[at]mieszko.zielinski [at]guillaume.guay
#rb mieszko.zielinski, guillaume.guay


#ROBOMERGE-SOURCE: CL 8552772 via CL 8557168
#ROBOMERGE-BOT: (v406-8472469)

[CL 8557314 by yoan stamant in Main branch]
2019-09-06 16:30:54 -04:00
yoan stamant
f3717d0e9b RecastNavMeshGenerator: Reworked fix from CL 7419221 to not mark NavBounds dirty for newly created navmesh when active tiles generation is enabled
in the navigation sytem without setting flag bRestrictBuildingToActiveTiles yet. This is required for the initial virtual call to RestrictBuildingToActiveTiles to perform the ActiveTiles initialization.

#rnx
[at]mieszko.zielinski
#rb mieszko.zielinski


#ROBOMERGE-SOURCE: CL 8548670 via CL 8555979
#ROBOMERGE-BOT: (v406-8472469)

[CL 8556169 by yoan stamant in Main branch]
2019-09-06 15:27:08 -04:00
stephen holmes
9ef8a34b02 Adding CSV perf stats
[at]Mieszko.Zielinski


#ROBOMERGE-SOURCE: CL 8428126 via CL 8439014
#ROBOMERGE-BOT: (v404-8404397)

[CL 8439268 by stephen holmes in Main branch]
2019-09-03 18:15:50 -04:00
mieszko zielinski
e3278597a5 Added octree debug drawing to AthenaNavMesh
#rb none


#ROBOMERGE-SOURCE: CL 8382710 via CL 8382912
#ROBOMERGE-BOT: (v403-8382528)

[CL 8382916 by mieszko zielinski in Main branch]
2019-08-30 08:50:11 -04:00
yoan stamant
ba73a1041b NavigationOctree: added additional data in FNavigationOctreeElement to recover from dangling entries.
#rnx
[at]maxime.mercier
#rb maxime.mercier


#ROBOMERGE-SOURCE: CL 8364914 via CL 8368369
#ROBOMERGE-BOT: (v402-8361577)

[CL 8368535 by yoan stamant in Main branch]
2019-08-28 20:52:49 -04:00
mieszko zielinski
a7422297c9 Extended FNavMeshSceneProxyData with a capability to store arbitrary FBoxes and given UNavMeshRenderingComponent's subclassess a way to populate FNavMeshSceneProxyData with data.
#rb Yoan.StAmant
Yoan.StAmant


#ROBOMERGE-SOURCE: CL 8210655 via CL 8212294
#ROBOMERGE-BOT: (v401-8057353)

[CL 8212296 by mieszko zielinski in Main branch]
2019-08-22 11:52:58 -04:00
mieszko zielinski
7964042869 CIS fix
#rb none


#ROBOMERGE-SOURCE: CL 8191556 via CL 8194115 via CL 8207744
#ROBOMERGE-BOT: (v401-8057353)

[CL 8207917 by mieszko zielinski in Main branch]
2019-08-22 00:00:51 -04:00
mieszko zielinski
c9c9e0790d Reorganized how we configure SupportedAgents. From now on every NavigationSystem instance has data on the full set of SupportedAgents (as configured via ProjectSettings) but also has a SupportedAgentsMask, that marks agents supported by the instance. It has been done this way to keep filtered per-agent NavMeshBoundVolumes work regardless of which supported agents a nav sys instance wants to support.
This approach allowed for easy NavigationSystem's config update with NavSystemConfigOverride's properties. NavSystemConfigOverride can now specify if it wants to fully override the pre-existing nav sys instance or if it just wants to append new information (like supported agents) to the existing navigation system instance. There's also an option to do nothing if there's already a navigation system present.

This CL rolls-back a bunch of temp fixes done in past couple of days.

#rb Yoan.StAmant
Yoan.StAmant


#ROBOMERGE-OWNER: mieszko.zielinski
#ROBOMERGE-AUTHOR: mieszko.zielinski
#ROBOMERGE-SOURCE: CL 8187661 via CL 8193395 via CL 8207613
#ROBOMERGE-BOT: (v401-8057353)

[CL 8207758 by mieszko zielinski in Main branch]
2019-08-21 23:59:12 -04:00
mieszko zielinski
fb13d32432 Removed PRAGMA_DISABLE_OPTIMIZATION left behind accidentally
#rb none


#ROBOMERGE-SOURCE: CL 8154701 via CL 8154703 via CL 8154820
#ROBOMERGE-BOT: (v401-8057353)

[CL 8161947 by mieszko zielinski in Main branch]
2019-08-21 09:54:56 -04:00
mieszko zielinski
642f7dc20a Added an option to RecastNavMeshGenerator that makes sorting of tiles to be generated optional.
#rb Yoan.StAmant
Yoan.StAmant, Maxime.Mercier


#ROBOMERGE-SOURCE: CL 8154693 via CL 8154694 via CL 8154817
#ROBOMERGE-BOT: (v401-8057353)

[CL 8161935 by mieszko zielinski in Main branch]
2019-08-21 09:54:53 -04:00
yoan stamant
c1a425a2d4 NavSystem: Prevent AbstractNavData from being rejected during NavigationData registration. Problem was exposed by recent change to the order in which NavDataRegistrationQueue is processed. Since AbstractNavData uses the default config, it was rejected since another navigation data was already registered for the same agent config (which was not the case when AbstractNavData was processed first). With this change, we should no longer be dependant on the registration order.
#jira UE-78811
[at]guillaume.guay [at]mieszko.zielinski


#ROBOMERGE-SOURCE: CL 8119051 via CL 8122721
#ROBOMERGE-BOT: (v401-8057353)

[CL 8124722 by yoan stamant in Main branch]
2019-08-20 09:59:05 -04:00
guillaume guay
45ca026404 Partial rollback of CL6604191.
RecastNavMeshGenerator initialization should be called right after object construction to ensure virtual methods are properly called and derived classes are fully constructed before rebuild navigation mesh.

#rnx
#rb yoan.stamant
[fyi] [at]Mieszko.Zielinski


#ROBOMERGE-SOURCE: CL 7981977 via CL 7996225
#ROBOMERGE-BOT: (v396-7974030)

[CL 7996495 by guillaume guay in Main branch]
2019-08-13 14:20:01 -04:00
Marc Audy
1c3be81dca Merging //UE4/Dev-Main to Dev-Framework (//UE4/Dev-Framework) @ 7950634
#rb
#rnx

[CL 7950994 by Marc Audy in Dev-Framework branch]
2019-08-12 12:52:39 -04:00
Marc Audy
3d0b873e3f Merging //UE4/Dev-Main to Dev-Framework (//UE4/Dev-Framework) @ 7712956
#rb
#rnx

[CL 7713270 by Marc Audy in Dev-Framework branch]
2019-08-04 15:53:40 -04:00
Benn Gallagher
3a4873ef60 Copying //UE4/Dev-Physics to Dev-Main (//UE4/Dev-Main) @ 7703071
#rb
#rnx

[CL 7705805 by Benn Gallagher in Main branch]
2019-08-02 09:01:58 -04:00
guillaume guay
a8821f80b4 - Added navigation system config 'bUseNavDataInAdditionalLevelWhenDuplicatedAgent". When set to TRUE, adding or streaming an additional level containing an already registered navigation data, it will unregister current one and register the new one;
- Added navigation system config 'bGenerateNavDataWhenNoCompatibleNavBound". When set to TRUE (default) it will still generate navigation data if any NavBoundVolume is compatible with its NavDataConfig, if false it gets rid of that navigation data;
- Make sure that when "bSpawnNavDataInNavBoundsLevel" is TRUE, it builds the navigation data in the first level containing a NavBoundVolume that actually supports this navigation data config (not any first one);
- Added virtual method on NavigateSystem "OnNavSystemOverriden" to give a chance to inspect previous NavigationSystem when getting overriden by a nav config override;
- Added some missing NavigationSystem clean up logic.

#tests client/server standalone Creative AI, Phoebe and regular + editor
#cr maxime.mercier
[FYI] mieszko.zielinski, stephen.holmes, yoan.stamant


#ROBOMERGE-OWNER: guillaume.guay
#ROBOMERGE-AUTHOR: guillaume.guay
#ROBOMERGE-SOURCE: CL 7679442 via CL 7679443 via CL 7688466
#ROBOMERGE-BOT: (v383-7686620)

[CL 7688470 by guillaume guay in Main branch]
2019-08-01 12:53:04 -04:00
maxime mercier
3404e04afb Fix regression in reachitecture of NavSystem
#rb stephane.delmer
#rnx


#ROBOMERGE-SOURCE: CL 7678434 via CL 7678435 via CL 7683318
#ROBOMERGE-BOT: (v382-7680231)

[CL 7683469 by maxime mercier in Main branch]
2019-08-01 10:35:59 -04:00
yoan stamant
60770f6f4f RecastNavMeshGenerator: Fixed regression introduced by 6675381 by configuring flag bRestrictBuildingToActiveTiles before marking NavBounds dirty for newly created navmesh. This prevents the whole navmesh to be generated when using Navigation invokers.
#rnx
#jira UE-77357
#rb maxime.mercier
[FYI] mieszko.zielinski

#ROBOMERGE-SOURCE: CL 7419221 in //UE4/Release-4.23/...
#ROBOMERGE-BOT: RELEASE (Release-4.23 -> Main) (v371-7306989)

[CL 7419246 by yoan stamant in Main branch]
2019-07-17 13:35:45 -04:00
Marc Audy
f3f7604cd4 Merge UE4/Main to Dev-Framework @ 7329145
#rb
#rnx

[CL 7415594 by Marc Audy in Dev-Framework branch]
2019-07-17 12:57:46 -04:00
mieszko zielinski
5beeedf257 Added some ensure in NavigationSystem to track down some server crashes related to obsolete entries in ObjectToOctreeId
#rnx
[at]maxime.mercier,[at]mieszko.zielinski
#rb mieszko.zielinski


#ROBOMERGE-OWNER: mieszko.zielinski
#ROBOMERGE-AUTHOR: yoan.stamant
#ROBOMERGE-SOURCE: CL 7307208 via CL 7315100
#ROBOMERGE-BOT: (v371-7306989)

[CL 7318580 by mieszko zielinski in Main branch]
2019-07-16 05:52:45 -04:00
Mieszko Zielinski
22b436775d Removed the octree reference from FNavigationOctreeElement
Submitting to Main as a follow up to 7308751

#jira none
#rb Yoan.StAmant
#review-7308772 Yoan.StAmant
#okforgitub public

[CL 7309638 by Mieszko Zielinski in Main branch]
2019-07-15 12:47:46 -04:00
yoan stamant
d29f1887a0 Added number of dirty areas to GameplayDebugger category navmesh
#rnx
[at]maxime.mercier
#rb guillaume.guay


#ROBOMERGE-SOURCE: CL 7289773 via CL 7306493
#ROBOMERGE-BOT: (v370-7290619)

[CL 7306546 by yoan stamant in Main branch]
2019-07-15 06:42:54 -04:00
Marc Audy
278eda75dd Merging //UE4/Dev-Main to Dev-Framework (//UE4/Dev-Framework) @ 7234503
#rb
#rnx

[CL 7263339 by Marc Audy in Dev-Framework branch]
2019-07-10 13:47:03 -04:00
mieszko zielinski
dba21ecc9d Fixed wrong copyright dates in NavigationDataHandler
#rb none


#ROBOMERGE-SOURCE: CL 7250275 via CL 7262923
#ROBOMERGE-BOT: (v369-7254125)

[CL 7263084 by mieszko zielinski in Main branch]
2019-07-10 13:44:06 -04:00