You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#fyi jurre.debaare #horde 218123,218081,218073,218063,218057,217995,217831,217939 Original CL Desc ----------------------------------------------------------------- REDO: UEFN - Users are able to apply Animation Modifiers via the right-click context menu #fix moved animation modifier menu section into module itself - gated by whether or not AnimationModifier class is allowed #rb Thomas.Sarkanen #preflight 6332c289a4769ad714e78a8c [CL 22217414 by marc audy in ue5-main branch]
44 lines
1.7 KiB
C++
44 lines
1.7 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Containers/Array.h"
|
|
#include "IAnimationModifiersModule.h"
|
|
#include "Templates/SharedPointer.h"
|
|
#include "UObject/NameTypes.h"
|
|
#include "WorkflowOrientedApp/WorkflowCentricApplication.h"
|
|
|
|
class FApplicationMode;
|
|
class UAnimSequence;
|
|
class UFactory;
|
|
class UObject;
|
|
|
|
/** Animation modifiers module, handles injecting of the AnimationModifiersTab into animation and skeleton editor modes */
|
|
class FAnimationModifiersModule : public IAnimationModifiersModule
|
|
{
|
|
public:
|
|
/** Called right after the module DLL has been loaded and the module object has been created */
|
|
virtual void StartupModule() override;
|
|
|
|
/** Called before the module is unloaded, right before the module object is destroyed */
|
|
virtual void ShutdownModule() override;
|
|
|
|
/** Begin IAnimationModifiersModule overrides */
|
|
virtual void ShowAddAnimationModifierWindow(const TArray<UAnimSequence*>& InSequences) override;
|
|
virtual void ApplyAnimationModifiers(const TArray<UAnimSequence*>& InSequences, bool bForceApply = true) override;
|
|
/** End IAnimationModifiersModule overrides */
|
|
|
|
protected:
|
|
/** Callback for extending an application mode */
|
|
TSharedRef<FApplicationMode> ExtendApplicationMode(const FName ModeName, TSharedRef<FApplicationMode> InMode);
|
|
|
|
/** Weak list of application modes for which a tab factory was registered */
|
|
TArray<TWeakPtr<FApplicationMode>> RegisteredApplicationModes;
|
|
|
|
FWorkflowApplicationModeExtender Extender;
|
|
|
|
/** Callbacks used to add and apply default animation modifier classes */
|
|
void OnAssetPostImport(UFactory* ImportFactory, UObject* ImportedObject);
|
|
void OnAssetPostReimport(UObject* ReimportedObject);
|
|
};
|