You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Merging //UE5/Release-Engine-Staging to Main (//UE5/Main) @ 14075166
#rb #rnx [CL 14075271 by Marc Audy in ue5-main branch]
This commit is contained in:
+1
-10
@@ -5,7 +5,6 @@
|
||||
#include "DatasmithUtils.h"
|
||||
#include "DatasmithSceneFactory.h"
|
||||
#include "IDatasmithSceneElements.h"
|
||||
#include "Misc/PackageName.h"
|
||||
|
||||
bool IDatasmithShaderElement::bUseRealisticFresnel = true;
|
||||
bool IDatasmithShaderElement::bDisableReflectionFresnel = false;
|
||||
@@ -141,15 +140,7 @@ FDatasmithMaterialIDElementImpl::FDatasmithMaterialIDElementImpl(const TCHAR* In
|
||||
: FDatasmithElementImpl( InName, EDatasmithElementType::MaterialId )
|
||||
, Id( 0 )
|
||||
{
|
||||
// Allow asset path as name in order to allow reference to existing material
|
||||
if (Name != InName)
|
||||
{
|
||||
FString Unsanitized = InName;
|
||||
if (FPackageName::IsValidObjectPath(Unsanitized))
|
||||
{
|
||||
Name = Unsanitized;
|
||||
}
|
||||
}
|
||||
FDatasmithMaterialIDElementImpl::SetName(InName); // no virtual call from ctr
|
||||
}
|
||||
|
||||
FDatasmithHierarchicalInstancedStaticMeshActorElementImpl::FDatasmithHierarchicalInstancedStaticMeshActorElementImpl(const TCHAR* InName)
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include "Containers/Array.h"
|
||||
#include "Containers/UnrealString.h"
|
||||
#include "Math/UnrealMathUtility.h"
|
||||
#include "Misc/PackageName.h"
|
||||
#include "Templates/SharedPointer.h"
|
||||
|
||||
template< typename InterfaceType >
|
||||
@@ -299,7 +300,11 @@ class FDatasmithMaterialIDElementImpl : public FDatasmithElementImpl< IDatasmith
|
||||
{
|
||||
public:
|
||||
explicit FDatasmithMaterialIDElementImpl(const TCHAR* InName);
|
||||
|
||||
virtual void SetName(const TCHAR* InName) override
|
||||
{
|
||||
FString Unsanitized = InName;
|
||||
Name = FPackageName::IsValidObjectPath(Unsanitized) ? Unsanitized : FDatasmithUtils::SanitizeObjectName(Unsanitized);
|
||||
}
|
||||
virtual int32 GetId() const override { return Id; }
|
||||
virtual void SetId(int32 InId) override { Id = InId; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user