Only allow streaming image assets with supported pixel formats to be selected for an image gradient

Signed-off-by: Chris Galvan <chgalvan@amazon.com>
This commit is contained in:
Chris Galvan
2022-02-11 13:28:21 -06:00
parent 5f334e30f9
commit 9cd84b6b2d
12 changed files with 327 additions and 10 deletions
@@ -24,6 +24,7 @@
#include <Editor/EditorPerlinGradientComponent.h>
#include <Editor/EditorRandomGradientComponent.h>
#include <Editor/EditorGradientTransformComponent.h>
#include <Editor/EditorStreamingImageAssetCtrl.h>
#include <Editor/EditorSurfaceMaskGradientComponent.h>
#include <Editor/EditorGradientSurfaceDataComponent.h>
#include <GradientSignal/Editor/EditorGradientComponentBase.h>
@@ -112,11 +113,14 @@ namespace GradientSignal
void GradientSignalEditorSystemComponent::Activate()
{
GradientPreviewDataWidgetHandler::Register();
StreamingImagePropertyHandler::Register();
}
void GradientSignalEditorSystemComponent::Deactivate()
{
GradientPreviewDataWidgetHandler::Unregister();
// We don't need to unregister the StreamingImagePropertyHandler
// because its set to auto-delete (default)
}
}