Commit Graph

205 Commits

Author SHA1 Message Date
Alexis Matte c186cbd8b4 When StaticMesh build options are set to use the imported normals, we now use the imported normals to compute the tangents when using the builtin option.
#rb none
#codereview richard.talbotwatkin

[CL 3961006 by Alexis Matte in Dev-Geometry branch]
2018-03-22 20:14:49 -04:00
Alexis Matte 793a2b1fe1 Move Normals tangents creation in MeshDescription module, this will allow to share the code between editable mesh and staticmesh builder
#rb none
#codereview richard.talbotwatkin

[CL 3960212 by Alexis Matte in Dev-Geometry branch]
2018-03-22 16:02:58 -04:00
Richard TalbotWatkin 5663072603 - UMeshDescription constructor no longer registers a set of default attributes. Attributes now need to be registered by the mesh description owner.
- Added a static UStaticMesh::RegisterMeshAttributes method to register attributes required by a static mesh.
- Added an additional attribute used by EditableMesh static meshes (material asset name for a polygon group).
- EditableStaticMeshAdapter internals now hold a copy of the static mesh material index they reference. This fixes an undo/redo bug.
- Removed FindOrAddMaterial from the adapter interface as it is no longer required; instead we hold the material asset name as a polygon group attribute and add/remove the material from the static mesh in the adapter.
- Fixed a bug when creating a polygon group when subdivided mesh rendering is enabled.
- Bumped the static mesh DDC key version.
#fyi Alexis.Matte
#rb none

[CL 3957998 by Richard TalbotWatkin in Dev-Geometry branch]
2018-03-21 16:48:30 -04:00
Matt Kuhlenschmidt a02c4a86f6 Fix CIS
#rb none

[CL 3931019 by Matt Kuhlenschmidt in Dev-Geometry branch]
2018-03-07 09:10:20 -05:00
Alexis Matte f158f6f053 Move MeshBuilder module from runtime to developper and make it editor only
#rb none

[CL 3914382 by Alexis Matte in Dev-Geometry branch]
2018-02-28 10:07:25 -05:00