Removed the asset callback from the EditorReflectionProbeComponent, since the component may have been destroyed and recreated between the bake and the asset load.
Replaced with an OnTick handler that polls the ReflectionProbeFeatureProcessor to determine when the asset is ready.
This commit is contained in:
@@ -234,9 +234,10 @@ namespace AZ
|
||||
m_updateSrg = true;
|
||||
}
|
||||
|
||||
void ReflectionProbe::SetCubeMapImage(const Data::Instance<RPI::Image>& cubeMapImage)
|
||||
void ReflectionProbe::SetCubeMapImage(const Data::Instance<RPI::Image>& cubeMapImage, const AZStd::string& relativePath)
|
||||
{
|
||||
m_cubeMapImage = cubeMapImage;
|
||||
m_cubeMapRelativePath = relativePath;
|
||||
m_updateSrg = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user