// Icon Studio - Mathew Simon

#include "IconStudioSession.h"

#if WITH_EDITOR
void UIconStudioSession::PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent)
{
	Super::PostEditChangeProperty(PropertyChangedEvent);

	// Modifier la liste du lot ne change rien a l'image affichee : inutile de
	// relancer un rendu complet a chaque ligne ajoutee.
	const FName PropertyName = PropertyChangedEvent.GetPropertyName();
	static const TSet<FName> PreviewProperties = {
		GET_MEMBER_NAME_CHECKED(UIconStudioSession, Preset),
		GET_MEMBER_NAME_CHECKED(UIconStudioSession, Subject),
		GET_MEMBER_NAME_CHECKED(UIconStudioSession, Pass),
	};

	if (PreviewProperties.Contains(PropertyName))
	{
		OnSessionChanged.Broadcast();
	}
}
#endif
