Commit Graph

899 Commits

Author SHA1 Message Date
don boogert
cf3190c988 Landscape : Fix Landscape Export Save Dialog
* The open dialog was incorrectly used for selecting fils to export

#rb chris.tchou

[CL 25824406 by don boogert in ue5-main branch]
2023-06-06 15:03:49 -04:00
don boogert
ad64dde88c Landscape : Import Fixes
* Fixed resolution warning when only importing weight maps
* Only use region import when Region exist.

#rb trivial
#preflight 647a3f43e319748a8329666e

[CL 25774753 by don boogert in ue5-main branch]
2023-06-02 17:35:29 -04:00
don boogert
d08ebcbf8e Landscape : Import fixes
#rb trivial
#preflight  647917d6e319748a836c4ad4

[CL 25753384 by don boogert in ue5-main branch]
2023-06-02 01:53:42 -04:00
don boogert
445ea183ed Landscape : Fixed Region import with 2x2 subsections
#rb trivial
#preflight 647522c2b310540a8d286e44

[CL 25671671 by don boogert in ue5-main branch]
2023-05-30 00:59:08 -04:00
don boogert
7325f51b56 Landscape : Change weight painting strength
Add a gamma function to the paint tools strength to make more of the slider range useful for painting. Setting: PaintStrengthGamma, defaults to 2.2 (1.0 should replicate old behavior)
Added option to disable the painting influence map which effectlively slows down the initial painting and makes it look like it accelerates. Setting: bDisablePaintingStartupSlowdown, defaults to true (false to return to old behavior)

#jira UE-183299
#rb jonathan.bard
#preflight 646feaa5407983b998343fdd

[CL 25651368 by don boogert in ue5-main branch]
2023-05-26 15:46:45 -04:00
jonathan bard
f7df9777cc Fixed visibility weightmaps being uselessly generated when using landscape patches : now, we only generate those when a patch actually writes visibility.
This allows the landscape to use opaque mode rather than masked, which is crucial performance-wise.

#rb luc.eygasier
#preflight 646e22f31b241f074831ee09

[CL 25607691 by jonathan bard in ue5-main branch]
2023-05-24 13:31:11 -04:00
kirill zorin
de8db5ff76 Converting ARO-facing raw pointers to TObjectPtr ahead of raw pointer ARO API deprecation.
#rb zousar.shaker
#rb markus.breyer
#rb robert.manuszewski

#preflight 646391406b1406b54ab15460

[CL 25489627 by kirill zorin in ue5-main branch]
2023-05-16 10:52:49 -04:00
bryan sefcik
d205101cc8 Removed unnecessary private include modules.
#preflight 645da640cf788a25581110bb

[CL 25451545 by bryan sefcik in ue5-main branch]
2023-05-12 12:13:52 -04:00
chris tchou
efeffc2a19 Fix crashes and other weird behavior after undo adding a new LayerInfo to a Landscape Layer.
#rb jonathan.bard
#jira UE-179669
#preflight 645ac6a06c35ad81e6a070d5

[CL 25407616 by chris tchou in ue5-main branch]
2023-05-10 12:26:42 -04:00
michael balzer
918675474c LandscapeEditor: Fix truncation warnings
#jira UE-166471
#preflight 6441f3abb14f1faacfeb573f
#rb jonathan.bard

[CL 25142122 by michael balzer in ue5-main branch]
2023-04-21 00:15:30 -04:00
don boogert
0d22b56276 Landscape : Fix static analysis warning of pointer use before checking for null.
#preflight 643ed36fdb681113a4f648f4
#rb none

[CL 25096467 by don boogert in ue5-main branch]
2023-04-18 18:05:06 -04:00
jonathan bard
4708f4e850 Fix for missing landscape actor in landscape tools for debug visual log
#rb chris.tchou
#jira UE-177927
#preflight 6434590828551807176b4c74

[CL 24982575 by jonathan bard in ue5-main branch]
2023-04-10 16:06:33 -04:00
jonathan bard
adf08a89ef * Made bEnableNanite and NaniteLODIndex shared properties for landscape proxies so that at cook time (where we cannot rely upon the presence of the parent landscape actor in the case of landscape streaming proxies) there's no ambiguity with regards to whether Nanite is enabled or not on a given proxy
* Added actionable map checks for when shared properties on proxies are not up-to-date
* Save Modified Landscapes now acts as a way to fix every landscape actor that needs to be updated because of such discrepancies
* Fixed ModifiedPackages system in ULandscapeInfo so that :
** It bypasses temp packages (e.g. when creating a new map out of a template map that has discrepancies within its shared properties itself, we don't want the user to be notified since nothing has been saved yet and all will be synchronized once the actors are)
** It doesn't act on actors belong to any other world type than Editor (e.g. we don't want the user to be notified when entering PIE since properties will be properly synchronized automatically and nothing needs to be saved afterwards)
** It doesn't do anything upon rolling back a transaction (e.g. since property sharing synchronization (i.e. FixupSharedData) runs on PostRegisterAllComponents, it would report the problem to the user while if we're undoing, we're already dirty anyway)

#rb chris.tchou
#preflight 642eadbff6304b1f0240db8b

[CL 24977308 by jonathan bard in ue5-main branch]
2023-04-10 10:30:39 -04:00
don boogert
d67c40d35a Landscape: Fix Localization keys & set local merge to be disabled by default
#jira UE-182707
#rb none
#preflight 6430f6527536ac6b780d6abc

[CL 24973962 by don boogert in ue5-main branch]
2023-04-08 13:47:46 -04:00
don boogert
7819a9d027 Landscape: Create Large landscapes using World Partition
#jira UE-171982
#rb jonathan.bird
#preflight 642c8862f376ab43d2910446

[CL 24937413 by don boogert in ue5-main branch]
2023-04-05 17:37:25 -04:00
don boogert
4b403b71eb [Backout] - CL24913693
[FYI] don.boogert
Original CL Desc
-----------------------------------------------------------------
Landscape: Create Large landscapes using World Partition

#jira UE-171982
#rb jonathan.bird
#preflight 642b6491f376ab43d23ea540

[CL 24920840 by don boogert in ue5-main branch]
2023-04-04 19:16:31 -04:00
don boogert
7dcdd7912f Landscape: Create Large landscapes using World Partition
#jira UE-171982
#rb jonathan.bird
#preflight 642b6491f376ab43d23ea540

[CL 24920727 by don boogert in ue5-main branch]
2023-04-04 19:13:26 -04:00
michael balzer
856c19acf4 Fix incorrect Landscape tooltips
#preflight none
#rb luc.eygasier

[CL 24850273 by michael balzer in ue5-main branch]
2023-03-29 23:53:09 -04:00
don boogert
90eca072ec Landscape: Fix crash when updating property permissions outside landscape mode
#rb jonathan.bird
#preflight 6422616fb72410fc179ead74

[CL 24824566 by don boogert in ue5-main branch]
2023-03-28 15:30:04 -04:00
don boogert
82d35e62c3 Landscape : Guard against missing HitProxy when adding control points to a hidden landscape.
#rb jonathan.bird
#preflight 6421f6b714423a492d1c4387

[CL 24824548 by don boogert in ue5-main branch]
2023-03-28 15:29:16 -04:00
jonathan bard
699c1f06e2 Removed the deprecated baked landscape GI texture system
#rb krzysztof.narkowicz
#jira UE-164430
#preflight 641478cc3f3d31c94a885f16

[CL 24783334 by jonathan bard in ue5-main branch]
2023-03-24 14:04:36 -04:00
chris tchou
d258f30304 * Prevent landscape gizmo actor from being duplicated
* Prevent alt-dragging the landscape gizmo in landscape mode (tries to duplicate it and crashes)
* Nullptr-check for landscape copy/paste tool for CurrentLandscapeInfo, like is done elsewhere

#rb
#preflight
#preflight 6411f00dbf53fdee198dd840

[CL 24658994 by chris tchou in ue5-main branch]
2023-03-15 14:23:16 -04:00
jonathan bard
1ea408e077 Fixed typos
#jira UE-179626
#rb trivial
#preflight none
[FYI] Sebastien.Hillaire

[CL 24577093 by jonathan bard in ue5-main branch]
2023-03-09 11:40:59 -05:00
chris tchou
eabb74f607 Tool changes to use local edit layer instead of shared state
The upgraded tools are:

FLandscapeToolSculpt
FLandscapeToolSmooth
FLandscapeToolFlatten
FLandscapeToolRamp
FLandscapeToolErosion
FLandscapeToolHydraErosion

The helper class FLandscapeLayerDataCache was fully upgraded to use explicit local edit layers (all tools that made use of it were upgraded, so no need for back compat).

For the tools, I decided to pass down the explicit edit layer via a "SetEditingLayer()" function -- legacy tools simply ignore that function call and continue to use the landscape shared state,
and upgraded tools will use it to set up the layer they should work in.

#rb jonathan.bard
#jira UE-133198
#preflight 63fe67b630633435f8b0e646

[CL 24472138 by chris tchou in ue5-main branch]
2023-03-01 17:22:50 -05:00
Florin Pascu
106ea7508c Preparation changes for removing FeatureLevel from World
FeatureLevel is Deprecated
Add Setter/Getter for FeatureLevel
NextStep: Make GetFeatureLevel returns DDSPI::GetFeatureLevel, remove FeatureLevel memberfrom UWorld
#jira UE-168551
#rb christopher.waters
#preflight 63ff5e49f43e53f6811c86a4

[CL 24461796 by Florin Pascu in ue5-main branch]
2023-03-01 09:41:33 -05:00