You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
27 lines
832 B
C++
27 lines
832 B
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "DestructibleMeshEditorPrivatePCH.h"
|
|
#include "ApexDestructibleAssetImport.h"
|
|
#include "Engine/DestructibleMesh.h"
|
|
|
|
UDestructibleChunkParamsProxy::UDestructibleChunkParamsProxy(const FObjectInitializer& ObjectInitializer)
|
|
:Super(ObjectInitializer)
|
|
{
|
|
|
|
}
|
|
|
|
void UDestructibleChunkParamsProxy::PostEditChangeProperty( struct FPropertyChangedEvent& PropertyChangedEvent )
|
|
{
|
|
check(DestructibleMesh != NULL && DestructibleMesh->FractureSettings != NULL);
|
|
|
|
if (DestructibleMesh->FractureSettings->ChunkParameters.Num() > ChunkIndex)
|
|
{
|
|
DestructibleMesh->FractureSettings->ChunkParameters[ChunkIndex] = ChunkParams;
|
|
}
|
|
|
|
#if WITH_APEX
|
|
BuildDestructibleMeshFromFractureSettings(*DestructibleMesh, NULL);
|
|
#endif
|
|
DestructibleMeshEditorPtr.Pin()->RefreshViewport();
|
|
}
|