Files
UnrealEngineUWP/Engine/Source/Editor/GraphEditor/Private/MaterialNodes/SGraphNodeMaterialComment.cpp
Ben Marsh 149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00

27 lines
986 B
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "GraphEditorCommon.h"
#include "Materials/MaterialExpressionComment.h"
#include "SGraphNodeComment.h"
#include "SGraphNodeMaterialComment.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();
}
}