Fix lingering hard reference to deleted landscapes being held by landscape info objects.
#rb jonathan.bard
[CL 36758879 by roey borsteinas in 5.5 branch]
Prevent cached result from attempted 16-bit import from preventing the 8bit attempt from running at all. Make more of the import code aware of the intended usage of an import request, 8bit for weightmaps and 16bit for heightmaps. Store those separately in the import cache to stop errors when the same file is imported as a weightmap and heightmap at the same time.
#jira UE-207756
#rb chris.tchou
[CL 36750405 by alan roach in 5.5 branch]
* Added filter to target layers list (helps when too many layers are being used)
* Minor UX improvements
#jira UE-220683
#rb chris.tchou
[CL 36038899 by jonathan bard in ue5-main branch]
All the other such properties that were manually copied in FEdModeLandscape::ChangeComponentSetting have been removed since their copy is now automatically handled by the call to CopySharedProperties
Also, the new landscape actor's label is now set to be the same as the original actor's, so that changing the size of a landscape doesn't end up giving actor numbered names
#rb chris.tchou
[CL 35962984 by jonathan bard in ue5-main branch]
* Don't display target layers, edit layers or BP brushes when using the Select tool, since it makes no sense there
* Display the Select tool in the Paint panel since it applies there too
* Refresh the landscape mode details panel when clearing the selection in order to hide the Select tool options immediately
* Moved the Select tool-specific options into a "Select Mask" category
* Moved the Select button to the end of the tool list for both Sculpt and Paint panel, since this is not really an editing tool and acts in both modes
#rb chris.tchou
[CL 35925440 by jonathan bard in ue5-main branch]
Several fixes with landscape brush
Details:
* Reverted incorrect change (29959327) for computation of valid area in FLandscapeEditDataInterface::GetHeightDataInternal
* In TLandscapeEditCache, when extending the cache data (in the "interpolation case"), we were incorrectly using the "valid bounds" returned by GetWeightData because this function mutates its input attributes likewise but without actually caching more than what was requested. We now do the same as in the "no-interpolation case" (where GetWeightDataFast doesn't do a similar modification to its inputs...), and only use the cached bounds to extend the cache
* Unlike TLandscapeEditCache's GetCachedData, GetOriginalData didn't check whether the data was present or not before storing it, which could introduce random values to OriginalData
* Pretty much all landscape brushes were using mismatched inclusive/exclusive bounds, which led to a missing row/column on the the bottom/right
Misc changes :
* Added landscape.VisualLog.ShowBrushPhysics (0 by default) to avoid polluting the visual logger whenever we move the mouse when landscape sculpting/painting, since that is only relevant to debug the landscape brush
* Added visual logs when extending the landscape data cache when using the landscape brush + fixed those logs to extend by (-0.5, +0.5) beyond the cached region, in order to properly show the vertices that were sampled (i.e. that allows to show what was cached when the cached region contains a single landscape vertex in either the X or Y direction)
* Use standard namespace name in landscape editor
#rb chris.tchou
#jira UE-219746
[CL 35373355 by jonathan bard in ue5-main branch]
Modify landscape creation code to handle failed region creation gracefully
This crash has only ever happened in 29.30, and not since mid-may, however the cause seems to be SpawnActor() failing and returning null.
It is unknown why this failure mode only happens in 29.30.
This code change was tested against forced null results.
#rb jonathan.bard
[CL 34627641 by chris tchou in ue5-main branch]
* Prevent landscape target layers from being renamed to a layer name that's already in use
#jira UE-216036
#rb chris.tchou
[CL 34009471 by jonathan bard in ue5-main branch]
Test is creating landscape at the default location, which was changed to the origin
#rb jonathan.bard
#jira UE-215464
[CL 33852408 by chris tchou in ue5-main branch]