Skip to content

Fix rig/DNA importer compilation (UE 5.8) - #92

Open
theNefelibatas wants to merge 1 commit into
JsonAsAsset:mainfrom
theNefelibatas:fix/ue5.8-api-compat
Open

Fix rig/DNA importer compilation (UE 5.8)#92
theNefelibatas wants to merge 1 commit into
JsonAsAsset:mainfrom
theNefelibatas:fix/ue5.8-api-compat

Conversation

@theNefelibatas

Copy link
Copy Markdown
Contributor

Problem

The Control Rig and DNA (RigLogic) importers fail to compile on UE 5.8
(C1083 / C2039 / C2660): the APIs they were written against were renamed,
moved, or removed by 5.8.

Changes

  • ControlRigBlueprint.hControlRigBlueprintLegacy.h (5.7): includes gated on the new
    UE5_7_BEYOND macro in Compatibility.h.
  • RigVM registry (5.8): GetForRead() deleted → reads go through FRigVMRegistry::Get();
    GetType stays on the wrapper (_NoLock spellings are protected now).
  • FRigVMExecuteOp::FunctionIndexCallableIndex (5.8): the index moved to the
    FRigVMInvokeCallableOp base.
  • GetArgumentInfos / GetArgumentNameForOperandIndex (5.7): gained a FRigVMRegistryHandle&
    parameter; calls pass FRigVMRegistry::Get().GetHandle_NoLock().
  • UDNAAsset::DnaFileNameDnaFileName_DEPRECATED (5.8).
  • Animation/SkinWeightProfile.hRendering/SkinWeightProfile.h (5.8).
  • 5.5 renames: GetRawNeutralJointValuesGetNeutralJointValues,
    GetRawJointOutputsGetJointOutputs.

Verification

  • Built with UE 5.8: 0 errors. Remaining warnings are C4996 deprecations from pre-existing code,
    not introduced here.
  • Older engines keep the original code path below each threshold version.

- gate ControlRigBlueprint include on 5.7 (renamed ControlRigBlueprintLegacy.h)
- gate RigLogic renames on 5.5 (GetNeutralJointValues, GetJointOutputs)
- gate DnaFileName and FRigVMExecuteOp::CallableIndex on 5.8
- pass registry handle to factory and function lookups on 5.7+
- read the registry through FRigVMRegistry::Get on 5.8 (GetForRead removed)
- point SkinWeightProfile.h at Rendering/ on 5.8
@Tectfy

Tectfy commented Aug 19, 2026

Copy link
Copy Markdown
Member

Hey, thanks for the commit! At the moment, I don't want to accept compatibility fixes since I'm going to handle most of them myself. There are quite a few versions that need to be updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants