- Add UE::ToolTarget::CommitMaterialSetUpdate() and ::CommitDynamicMeshUpdate(). ::GetDynamicMeshCopy() can now return tangents if requested.
- Add IMeshDescriptionProvider::CalculateAutoGeneratedAttributes(). Default implementation does nothing, UStaticMeshComponentToolTarget implementation initializes auto-generated MeshDescription attributes. Used in ::GetDynamicMeshCopy() to get tangents (but requires a MeshDescription copy).
- Clean up handling of Tangents in Simple/OctreeDynamicMeshComponent. Add local MakeTangentsFunc() to generate the Tangents lambda, handle different cases and no-tangents fallbacks consistently.
- UDynamicMesh: add optional info arguments to EditMesh() and ChangeInfo struct. Add support for deferring change events from Edit funcs.
- Remove UBaseDynamicMeshComponent::InitializeMesh(), ::Bake() APIs, and add ::SetMesh(). Implement in Simple/Octree implementations, update all Tools that used those APIs.
- Add USimpleDynamicMeshComponent::ProcessMesh(), EditMesh(). These are now the preferred ways to read/write mesh.
- Update USimpleDynamicMeshComponent tangents handling. Externally-computed tangents are now taken directly from the FDynamicMesh3 attribute set. Autogenerated tangents are still computed and stored in an internal FMeshTangentsf, but this is no longer exposed for external updates.
- Remove UPreviewMesh pass-through functions for Tangents access, InitializeMesh() and Bake(). Add ProcessMesh()
- Update all affected Tools. In most cases these Tools have also been converted to use ModelingToolTargetUtil functions, instead of direct ToolTarget interface casting.
#rb none
#rnx
#jira none
#preflight 60c3e71d3e1b3c00015668af
[CL 16650666 by Ryan Schmidt in ue5-main branch]
#rb none
#rnx
#ROBOMERGE-SOURCE: CL 12908995 via CL 12908996 via CL 12909001
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v682-12900288)
[CL 12909003 by ryan schmidt in Main branch]
THIS CHANGE IS AN EDIGRATE OF CL 11130397 IN DEV-EDITOR
#jira UE-87445
#jira UE-87545
#jira UE-90163
#rb none
#rnx
#ROBOMERGE-SOURCE: CL 11951442 in //UE4/Release-4.25/... via CL 11951484
#ROBOMERGE-BOT: RELEASE (Release-4.25Plus -> Main) (v656-11643781)
[CL 11951546 by michael daum in Main branch]
- Removed UExistingMeshMaterialProperties::SetMaterialIfChanged, the logic was too convoluted now that we don't actually set new materials on the PreviewMesh. Now just forcing a material update whenever any material setting changes.
- UMeshOpPreviewWithBackgroundCompute now takes material set, added ::ConfigureMaterials() that takes array (previous API remains)
- UMeshOpPreviewWithBackgroundCompute now has additional OverrideMaterial, if set then this is forwarded to UPreviewMesh as override material
#rb none
#rnx
#fyi jimmy.andrews, michael.daum
[CL 10315156 by Ryan Schmidt in Dev-Editor branch]