File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
Source/HoudiniEngineEditor/Private Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -1671,11 +1671,10 @@ FHoudiniEngineCommands::TriageHoudiniAssetComponentsForProxyMeshRefinement(UHoud
1671
1671
if (!IsValid (ProxyObject))
1672
1672
continue ;
1673
1673
1674
+ // Just mark the object as garbage and his package as dirty
1675
+ // Do not save the package automatically - as will cause crashes in PIE
1674
1676
ProxyObject->MarkAsGarbage ();
1675
1677
ProxyObject->MarkPackageDirty ();
1676
- UPackage* const Package = ProxyObject->GetPackage ();
1677
- if (IsValid (Package))
1678
- ProxyMeshPackagesToSave.Add (Package);
1679
1678
}
1680
1679
}
1681
1680
}
@@ -1708,14 +1707,6 @@ FHoudiniEngineCommands::TriageHoudiniAssetComponentsForProxyMeshRefinement(UHoud
1708
1707
{
1709
1708
TryCollectGarbage (GARBAGE_COLLECTION_KEEPFLAGS);
1710
1709
1711
- // TODO: Try to prevent potential crash upon multiple successive PIE
1712
- for (int nIdx = ProxyMeshPackagesToSave.Num () - 1 ; nIdx >= 0 ; nIdx--)
1713
- {
1714
- UPackage* CurPackage = ProxyMeshPackagesToSave[nIdx];
1715
- if (!IsValid (CurPackage) || !CurPackage->IsDirty ())
1716
- ProxyMeshPackagesToSave.RemoveAt (nIdx);
1717
- }
1718
-
1719
1710
FEditorFileUtils::PromptForCheckoutAndSave (ProxyMeshPackagesToSave, true , false );
1720
1711
}
1721
1712
}
You can’t perform that action at this time.
0 commit comments