You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #rb none #ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904 #ROBOMERGE-BOT: (v613-10869866) [CL 10870586 by ryan durand in Main branch]
26 lines
929 B
C++
26 lines
929 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "MaterialNodes/SGraphNodeMaterialComment.h"
|
|
#include "Materials/MaterialExpressionComment.h"
|
|
#include "MaterialGraph/MaterialGraphNode_Comment.h"
|
|
|
|
void SGraphNodeMaterialComment::Construct(const FArguments& InArgs, class UMaterialGraphNode_Comment* InNode)
|
|
{
|
|
SGraphNodeComment::Construct(SGraphNodeComment::FArguments(), InNode);
|
|
|
|
this->CommentNode = InNode;
|
|
}
|
|
|
|
void SGraphNodeMaterialComment::MoveTo(const FVector2D& NewPosition, FNodeSet& NodeFilter)
|
|
{
|
|
if( !NodeFilter.Find( SharedThis( this ) ))
|
|
{
|
|
SGraphNodeComment::MoveTo(NewPosition, NodeFilter);
|
|
|
|
CommentNode->MaterialExpressionComment->MaterialExpressionEditorX = CommentNode->NodePosX;
|
|
CommentNode->MaterialExpressionComment->MaterialExpressionEditorY = CommentNode->NodePosY;
|
|
CommentNode->MaterialExpressionComment->MarkPackageDirty();
|
|
CommentNode->MaterialDirtyDelegate.ExecuteIfBound();
|
|
}
|
|
}
|