36 lines
855 B
C++
36 lines
855 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Modules/ModuleManager.h"
|
|
|
|
class FToolBarBuilder;
|
|
class FMenuBuilder;
|
|
|
|
class FGuidFixerModule : public IModuleInterface
|
|
{
|
|
public:
|
|
/** IModuleInterface implementation */
|
|
virtual void StartupModule() override;
|
|
virtual void ShutdownModule() override;
|
|
|
|
void FixMaterialGuids() const;
|
|
void FixTextureGuids() const;
|
|
void FixEngineTextureGuids() const;
|
|
|
|
|
|
private:
|
|
void RegisterMenus();
|
|
|
|
bool IsDefaultObject(FString Path) const;
|
|
|
|
void SetMaterialLightingGuid(UMaterialInterface* Material) const;
|
|
void SetTextureLightingGuid(UTexture* Texture) const;
|
|
|
|
private:
|
|
TSharedPtr<class FUICommandList> FixMaterialGuidsCommands;
|
|
TSharedPtr<class FUICommandList> FixTextureGuidsCommands;
|
|
TSharedPtr<class FUICommandList> FixEngineTextureGuidsCommands;
|
|
};
|