You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Here we inttroduce a new struct ModelMaterialSlot which formalizes the concept of material slot, with an ID, display name, and default material assignment. The ID still comes from the MaterialUid like before. The display name is built-in, rather than being parsed out from the asset file name. And the default material assignment can be any material asset, it doesn't have to come from the FBX (or other scene file). This commit is just the preliminary set of changes. Cursory testing shows that it works pretty well but more testing is needed (and likely some fixes) before merging. Here is what's left to do... Add serialization version converters to preserve prior prefab data. See if we can get rid of GetLabelByAssetId function only rely on the display name inside ModelMaterialSlot. I'm not sure if the condition for enabling the "Edit Material Instance..." context menu item is correct. Test actors Lots more testing in general Signed-off-by: santorac <55155825+santorac@users.noreply.github.com> |
4 years ago | |
|---|---|---|
| .. | ||
| EditorMaterialComponent.cpp | 4 years ago | |
| EditorMaterialComponent.h | 4 years ago | |
| EditorMaterialComponentExporter.cpp | 4 years ago | |
| EditorMaterialComponentExporter.h | 4 years ago | |
| EditorMaterialComponentInspector.cpp | 4 years ago | |
| EditorMaterialComponentInspector.h | 4 years ago | |
| EditorMaterialComponentSlot.cpp | 4 years ago | |
| EditorMaterialComponentSlot.h | 4 years ago | |
| EditorMaterialComponentUtil.cpp | 4 years ago | |
| EditorMaterialComponentUtil.h | 4 years ago | |
| EditorMaterialModelUvNameMapInspector.cpp | 4 years ago | |
| EditorMaterialModelUvNameMapInspector.h | 4 years ago | |
| EditorMaterialSystemComponent.cpp | 4 years ago | |
| EditorMaterialSystemComponent.h | 4 years ago | |
| MaterialBrowserInteractions.cpp | 4 years ago | |
| MaterialBrowserInteractions.h | 4 years ago | |
| MaterialComponent.cpp | 4 years ago | |
| MaterialComponent.h | 4 years ago | |
| MaterialComponentConfig.cpp | 4 years ago | |
| MaterialComponentController.cpp | 4 years ago | |
| MaterialComponentController.h | 4 years ago | |
| MaterialThumbnail.cpp | 4 years ago | |
| MaterialThumbnail.h | 4 years ago | |