EM_Task/UnrealEd/Private/Factories/EditorMorphFactory.cpp

39 lines
1.3 KiB
C++
Raw Normal View History

2026-02-13 16:18:33 +08:00
// Copyright Epic Games, Inc. All Rights Reserved.
/*=============================================================================
EditorMorphFactory.cpp: Morph target mesh factory import code.
=============================================================================*/
#include "CoreMinimal.h"
#include "Misc/FeedbackContext.h"
#include "Engine/SkeletalMesh.h"
#include "Engine/StaticMesh.h"
#include "Animation/MorphTarget.h"
#include "Factories.h"
#define SET_MORPH_ERROR(ErrorType) { if( Error ) *Error = ErrorType; }
/**
* Constructor
*
* @param InSrcMesh - source skeletal mesh that the new morph mesh morphs
* @param LODIndex - lod entry of base mesh
* @param InWarn - for outputing warnings
*/
FMorphTargetBinaryImport::FMorphTargetBinaryImport(USkeletalMesh* InSrcMesh, int32 LODIndex, FFeedbackContext* InWarn)
: Warn(InWarn), BaseLODIndex(LODIndex), BaseMesh(InSrcMesh)
{
}
/**
* Constructor
*
* @param InSrcMesh - source static mesh that the new morph mesh morphs
* @param LODIndex - lod entry of base mesh
* @param InWarn - for outputing warnings
*/
FMorphTargetBinaryImport::FMorphTargetBinaryImport(UStaticMesh* InSrcMesh, int32 LODIndex, FFeedbackContext* InWarn)
: Warn(InWarn), BaseLODIndex(LODIndex), BaseMesh(InSrcMesh)
{
}