You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Fixing memory leak when GC is not called in datasmith mesh exporter #jira UE-87989 JeanMichel.Dignard #rb JeanMichel.Dignard #ROBOMERGE-SOURCE: CL 11461470 in //UE4/Release-4.25/... #ROBOMERGE-BOT: RELEASE (Release-4.25 -> Release-4.25Plus) (v654-11333218) [CL 11461475 by benoit deschenes in 4.25-Plus branch]
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
#pragma once
|
|
|
|
#include "DatasmithExportOptions.h"
|
|
#include "Templates/SharedPointer.h"
|
|
|
|
class FDatasmithMesh;
|
|
class FDatasmithMeshExporterImpl;
|
|
class IDatasmithMeshElement;
|
|
|
|
class DATASMITHEXPORTER_API FDatasmithMeshExporter
|
|
{
|
|
public:
|
|
FDatasmithMeshExporter();
|
|
virtual ~FDatasmithMeshExporter();
|
|
|
|
/**
|
|
* Exports the DatasmithMesh as a UObject.
|
|
*
|
|
* @param Filepath The path where the resulting file will be written
|
|
* @param Filename The name of the file to export to, without any path or extension
|
|
* @param Mesh The mesh to export
|
|
* @param CollisionMesh An optional collision mesh
|
|
* @param LightmapUV The UV generation export option
|
|
*
|
|
* @return A IDatasmithMeshElement that refers to the exported file
|
|
*/
|
|
TSharedPtr< IDatasmithMeshElement > ExportToUObject( const TCHAR* Filepath, const TCHAR* Filename, FDatasmithMesh& Mesh, FDatasmithMesh* CollisionMesh, EDSExportLightmapUV LightmapUV );
|
|
|
|
/**
|
|
* @return The error that happened during the last export, if any
|
|
*/
|
|
FString GetLastError() const;
|
|
|
|
private:
|
|
|
|
FDatasmithMeshExporterImpl* Impl;
|
|
};
|