Files
UnrealEngineUWP/Engine/Source/Editor/GraphEditor/Private/MaterialNodes/SGraphNodeMaterialComment.h
daren cheng 9a9a0cb1f9 Edigrate 16359780.
Don't create transactions except on release when moving nodes.

#jira UE-115317
#rb Francis.Hurteau, Patrick.Boutot
#preflight 60a3ff23733ad00001685c6a

[CL 16373994 by daren cheng in ue5-main branch]
2021-05-18 15:26:27 -04:00

27 lines
718 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "SGraphNodeComment.h"
class UMaterialGraphNode_Comment;
class SGraphNodeMaterialComment : public SGraphNodeComment
{
public:
SLATE_BEGIN_ARGS(SGraphNodeMaterialComment){}
SLATE_END_ARGS()
void Construct(const FArguments& InArgs, class UMaterialGraphNode_Comment* InNode);
// SNodePanel::SNode interface
virtual void MoveTo(const FVector2D& NewPosition, FNodeSet& NodeFilter, bool bMarkDirty = true) override;
// End of SNodePanel::SNode interface
private:
/** Cached material graph node pointer to avoid casting */
UMaterialGraphNode_Comment* CommentNode;
};