Files
UnrealEngineUWP/Engine/Source/Editor/MeshPaintMode/Private/PaintModeSettings.cpp
Ryan Vance 7c51ff94af Merging //UE4/Dev-Main to Dev-VR (//UE4/Dev-VR)
CL 1 of 8
#rb integration

[CL 4748712 by Ryan Vance in Dev-VR branch]
2019-01-17 18:54:05 -05:00

25 lines
589 B
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#include "PaintModeSettings.h"
#include "UObject/UObjectGlobals.h"
#include "UObject/Package.h"
UPaintModeSettings::UPaintModeSettings(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer),
PaintMode(EPaintMode::Vertices)
{
}
UPaintModeSettings* UPaintModeSettings::Get()
{
static UPaintModeSettings* Settings = nullptr;
if (!Settings)
{
Settings = DuplicateObject<UPaintModeSettings>(GetMutableDefault<UPaintModeSettings>(), GetTransientPackage());
Settings->AddToRoot();
}
return Settings;
}