Files
UnrealEngineUWP/Engine/Plugins/Compositing/OpenColorIO
jason nadro 8e28213fa0 Various crash fixes for material editor only data for the cooked editor.
# Crash Fixes
- Fix crash due to unserialized data in FMaterialLayersFunctions.  The editor only layer state data did not match that of the runtime data resulting in crashes.  FMaterialLayersFunctions cannot have UPROPERTIES wrapped in WITH_EDITORONLY_DATA if FMaterialLayersFunctions is a UPROPERTY on an optional object (which it is).  The simple fix is to remove WITH_EDITORONLY_DATA which has the side effect of cooking this data into the optional package.
- Fix crash trying to access null GameThreadShaderMap by calling AssociateWithAsset() _after_ we assign to the pointer.

# Missing code
I re-editgrated Material.cpp and MaterialInstanceConstant.cpp from CL# 20043286.  This caught some code that didn't cleanly make it over in the original merge.
- UMaterial::UpdateCachedExpressionData now validates data, and will properly update cached expression data.
- UMaterialInstanceConstant::UpdateCachedData properly updates cached expression data.

#rb Francis.Hurteau
#preflight 62850838486700b561e87567

#ROBOMERGE-OWNER: jason.nadro
#ROBOMERGE-AUTHOR: jason.nadro
#ROBOMERGE-SOURCE: CL 20282796 via CL 20284650 via CL 20285046 via CL 20285056
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v948-20297126)

[CL 20304712 by jason nadro in ue5-main branch]
2022-05-20 18:45:46 -04:00
..