ue-mcp 0.4.16 → 0.4.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1843,9 +1843,9 @@ TSharedPtr<FJsonValue> FAssetHandlers::AddSocket(const TSharedPtr<FJsonObject>&
|
|
|
1843
1843
|
NewSocket->RelativeLocation = RelLoc;
|
|
1844
1844
|
NewSocket->RelativeRotation = RelRot;
|
|
1845
1845
|
NewSocket->RelativeScale = RelScale;
|
|
1846
|
+
SM->Modify();
|
|
1846
1847
|
SM->Sockets.Add(NewSocket);
|
|
1847
1848
|
SM->MarkPackageDirty();
|
|
1848
|
-
SM->PostEditChange();
|
|
1849
1849
|
|
|
1850
1850
|
Result->SetBoolField(TEXT("success"), true);
|
|
1851
1851
|
Result->SetStringField(TEXT("socketName"), SocketName);
|
|
@@ -1910,9 +1910,9 @@ TSharedPtr<FJsonValue> FAssetHandlers::RemoveSocket(const TSharedPtr<FJsonObject
|
|
|
1910
1910
|
{
|
|
1911
1911
|
if (SM->Sockets[i] && SM->Sockets[i]->SocketName == FName(*SocketName))
|
|
1912
1912
|
{
|
|
1913
|
+
SM->Modify();
|
|
1913
1914
|
SM->Sockets.RemoveAt(i);
|
|
1914
1915
|
SM->MarkPackageDirty();
|
|
1915
|
-
SM->PostEditChange();
|
|
1916
1916
|
|
|
1917
1917
|
TSharedPtr<FJsonObject> Result = MakeShared<FJsonObject>();
|
|
1918
1918
|
Result->SetBoolField(TEXT("success"), true);
|
|
@@ -1925,7 +1925,7 @@ TSharedPtr<FJsonValue> FAssetHandlers::RemoveSocket(const TSharedPtr<FJsonObject
|
|
|
1925
1925
|
|
|
1926
1926
|
if (USkeletalMesh* SKM = Cast<USkeletalMesh>(Asset))
|
|
1927
1927
|
{
|
|
1928
|
-
|
|
1928
|
+
auto& Sockets = SKM->GetMeshOnlySocketList();
|
|
1929
1929
|
for (int32 i = 0; i < Sockets.Num(); ++i)
|
|
1930
1930
|
{
|
|
1931
1931
|
if (Sockets[i] && Sockets[i]->SocketName == FName(*SocketName))
|