Skip to content

Swap skinned mesh from another slot / Unswap skinned mesh#1168

Open
Stranger1992 wants to merge 3 commits intodevelopfrom
Skinned-Mesh-Nodes
Open

Swap skinned mesh from another slot / Unswap skinned mesh#1168
Stranger1992 wants to merge 3 commits intodevelopfrom
Skinned-Mesh-Nodes

Conversation

@Stranger1992
Copy link
Copy Markdown
Member

This pull request adds new functionality to allow swapping and unswapping of skinned meshes on moveable objects in the engine. Two new functions are introduced: one to swap the skinned mesh from another slot, and another to revert the swap and restore the original mesh.

New moveable skinned mesh management functions:

  • Added SwapSkinnedMesh function to LevelFuncs.Engine.Node, enabling the replacement of a moveable's skinned mesh with another, optionally specifying a mesh index for cases with multiple skinned meshes in a single slot.
  • Added UnswapSkinnedMesh function to LevelFuncs.Engine.Node, allowing the restoration of the original skinned mesh by undoing any previous swaps.

@Stranger1992 Stranger1992 added Tomb Editor Nodes Task specific to TEN Nodes. ready for review The Pull Request is finished and ready for review. labels Mar 26, 2026
Copilot AI review requested due to automatic review settings March 26, 2026 03:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds scripting-level support for swapping a moveable’s skinned mesh from another WAD slot and restoring the original skinned mesh afterward.

Changes:

  • Added LevelFuncs.Engine.Node.SwapSkinnedMesh(moveable, target, mesh) to swap a moveable’s skinned mesh (optionally selecting a mesh index).
  • Added LevelFuncs.Engine.Node.UnswapSkinnedMesh(moveable) to revert a prior skinned mesh swap.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Stranger1992 and others added 2 commits March 26, 2026 03:09
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for review The Pull Request is finished and ready for review. Tomb Editor Nodes Task specific to TEN Nodes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants