Files
UnrealEngineUWP/Engine/Source/Editor/VirtualTexturingEditor/Private/VirtualTextureFactoryNew.cpp
john mauney f6d61ab7b6 Update Epic copyright from 2017 to 2018
#jira UE-653339
#RB none

#ROBOMERGE-SOURCE: CL 4477668 in //UE4/Release-4.21/...
#ROBOMERGE-BOT: RELEASE (Release-4.21 -> Release-Staging-4.21)

[CL 4477669 by john mauney in Staging-4.21 branch]
2018-10-16 20:30:57 -04:00

23 lines
674 B
C++

// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
#include "VirtualTextureFactoryNew.h"
#include "VT/VirtualTexture.h"
UVirtualTextureFactoryNew::UVirtualTextureFactoryNew(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
SupportedClass = UVirtualTexture::StaticClass();
bCreateNew = true;
bEditAfterNew = true;
}
UObject* UVirtualTextureFactoryNew::FactoryCreateNew(UClass* InClass, UObject* InParent, FName InName, EObjectFlags Flags, UObject* Context, FFeedbackContext* Warn)
{
return NewObject<UVirtualTexture>(InParent, InClass, InName, Flags);
}
bool UVirtualTextureFactoryNew::ShouldShowInNewMenu() const
{
return true;
}