Skip to content

Commit

Permalink
fix: ビルドエラー UE4.23
Browse files Browse the repository at this point in the history
  • Loading branch information
ruyo committed May 2, 2024
1 parent 91bfdfa commit d38b8eb
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
#include "AnimGraphNode_VrmPoseBlendNode.h"
#include "EdGraphSchema_K2_Actions.h"
#include "Modules/ModuleManager.h"
#if UE_VERSION_OLDER_THAN(4,24,0)
#else
#include "ToolMenus.h"
#endif

#include "AnimGraphCommands.h"
#include "BlueprintActionFilter.h"
Expand Down Expand Up @@ -134,6 +137,8 @@ bool UAnimGraphNode_VrmPoseBlendNode::DoesSupportTimeForTransitionGetter() const
return false;
}

#if UE_VERSION_OLDER_THAN(4,24,0)
#else
void UAnimGraphNode_VrmPoseBlendNode::GetNodeContextMenuActions(UToolMenu* Menu, UGraphNodeContextMenuContext* Context) const
{
#if UE_VERSION_OLDER_THAN(5,0,0)
Expand All @@ -148,6 +153,7 @@ void UAnimGraphNode_VrmPoseBlendNode::GetNodeContextMenuActions(UToolMenu* Menu,
}
#endif
}
#endif

EAnimAssetHandlerType UAnimGraphNode_VrmPoseBlendNode::SupportsAssetClass(const UClass* AssetClass) const
{
Expand Down
3 changes: 3 additions & 0 deletions Source/VRM4UImporter/Private/AnimGraphNode_VrmPoseBlendNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,12 @@ class UAnimGraphNode_VrmPoseBlendNode : public UAnimGraphNode_PoseHandler
virtual EAnimAssetHandlerType SupportsAssetClass(const UClass* AssetClass) const override;
// End of UAnimGraphNode_Base

#if UE_VERSION_OLDER_THAN(4,24,0)
#else
// UK2Node interface
virtual void GetNodeContextMenuActions(class UToolMenu* Menu, class UGraphNodeContextMenuContext* Context) const override;
// End of UK2Node interface
#endif

private:
FText GetNodeTitleForPoseAsset(ENodeTitleType::Type TitleType, UPoseAsset* InPoseAsset) const;
Expand Down
50 changes: 31 additions & 19 deletions Source/VRM4UImporter/VRM4UImporter.Build.cs
Original file line number Diff line number Diff line change
@@ -1,43 +1,55 @@

using System;
using UnrealBuildTool;

public class VRM4UImporter : ModuleRules
{
public VRM4UImporter(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;

PrivateDependencyModuleNames.AddRange(
PrivateDependencyModuleNames.AddRange(
new string[] {
"Core",
"CoreUObject",
"InputCore",
"EditorStyle",
"ApplicationCore",
"Engine",
"InputCore",
"EditorStyle",
"ApplicationCore",
"Engine",
"Json",
"UnrealEd",
"Slate",
"SlateCore",
"MainFrame",
"VRM4U",
"VRM4ULoader",
"Slate",
"SlateCore",
"MainFrame",
"VRM4U",
"VRM4ULoader",

"AnimGraphRuntime",
"AnimGraph",
"BlueprintGraph",
"AnimGraphRuntime",
"AnimGraph",
"BlueprintGraph",

"PropertyEditor",
"Persona",

"ToolMenus",
//"ToolMenus",
});

BuildVersion Version;
if (BuildVersion.TryRead(BuildVersion.GetDefaultFileName(), out Version)) {
//if (Version.MajorVersion == X && Version.MinorVersion == Y)
if (Version.MajorVersion == 4 && Version.MinorVersion <= 23)
{
}
else {
PrivateDependencyModuleNames.Add("ToolMenus");
}
}

PrivateIncludePathModuleNames.AddRange(
new string[] {
"AssetTools",
"AssetRegistry"
});
new string[] {
"AssetTools",
"AssetRegistry"
});

DynamicallyLoadedModuleNames.AddRange(
new string[] {
Expand Down

0 comments on commit d38b8eb

Please sign in to comment.