Пример #1
0
void FPropertyEditor::OnCustomResetToDefault( FSimpleDelegate OnCustomResetToDefaultDelegate )
{
	if(OnCustomResetToDefaultDelegate.IsBound())
	{
		PropertyNode->NotifyPreChange( PropertyNode->GetProperty(), PropertyUtilities->GetNotifyHook() );

		OnCustomResetToDefaultDelegate.Execute();

		// Call PostEditchange on all the objects
		FPropertyChangedEvent ChangeEvent( PropertyNode->GetProperty() );
		PropertyNode->NotifyPostChange( ChangeEvent, PropertyUtilities->GetNotifyHook() );
	}
}