Skip to content

Commit

Permalink
Fix packaging and content cook issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChildAdrian committed Sep 18, 2024
1 parent af98a87 commit f6d36f5
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
Binary file not shown.
Binary file not shown.
8 changes: 7 additions & 1 deletion HoudiniMassTranslator.uplugin
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,20 @@
"MarketplaceURL": "",
"SupportURL": "",
"CanContainContent": true,
"SupportedTargetPlatforms": [
"Win64"
],
"IsBetaVersion": false,
"IsExperimentalVersion": false,
"Installed": false,
"Modules": [
{
"Name": "HoudiniMassTranslator",
"Type": "Editor",
"LoadingPhase": "Default"
"LoadingPhase": "Default",
"PlatformAllowList": [
"Win64"
]
}
],
"Plugins": [
Expand Down
3 changes: 2 additions & 1 deletion Source/HoudiniMassTranslator/HoudiniMassTranslator.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ public HoudiniMassTranslator(ReadOnlyTargetRules Target) : base(Target)
"HoudiniEngine",
"ZoneGraph",
"ToolMenus",
"UnrealEd"
"UnrealEd",
"DeveloperToolSettings",
}
);

Expand Down
11 changes: 11 additions & 0 deletions Source/HoudiniMassTranslator/Private/HoudiniMassTranslator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include "Framework/Notifications/NotificationManager.h"
#include "ZoneGraphDelegates.h"

#include "Settings/ProjectPackagingSettings.h"

#include "HoudiniEngine.h"
#include "HoudiniInputZoneShape.h"
#include "HoudiniOutputZoneShape.h"
Expand Down Expand Up @@ -53,6 +55,15 @@ void FHoudiniMassTranslator::StartupModule()

UE::ZoneGraphDelegates::OnZoneGraphDataBuildDone.AddRaw(this, &FHoudiniMassTranslator::OnZoneGraphBuildDone);
FEditorDelegates::BeginPIE.AddRaw(this, &FHoudiniMassTranslator::OnZoneGraphBuildCancel);

// We need to ignore this plugin's content while unreal cooking
UProjectPackagingSettings* PackagingSettings = GetMutableDefault<UProjectPackagingSettings>();
if (!PackagingSettings->DirectoriesToNeverCook.ContainsByPredicate(
[](const FDirectoryPath& Directory) { return Directory.Path == TEXT("/HoudiniMassTranslator/Example"); }))
{
PackagingSettings->DirectoriesToNeverCook.Add({ TEXT("/HoudiniMassTranslator/Example") });
PackagingSettings->TryUpdateDefaultConfigFile();
}
}

void FHoudiniMassTranslator::OnZoneShapeOutputFinish()
Expand Down

0 comments on commit f6d36f5

Please sign in to comment.