Skip to content

Reduce code duplication in bone_position / bone_direction#182

Merged
themrdemonized merged 1 commit intothemrdemonized:landerfrom
Lander-Modding:bone-transform-refactor
Apr 24, 2025
Merged

Reduce code duplication in bone_position / bone_direction#182
themrdemonized merged 1 commit intothemrdemonized:landerfrom
Lander-Modding:bone-transform-refactor

Conversation

@ProfLander
Copy link
Contributor

Both functions' bodies were identical to bone_transform, save for picking out the respective component/s, so can be trivially amended to call it instead.

Also reordered bone_transform to be declared / defined first, as a syntactic hint that it's logically upstream of bone_position / bone_direction.

- Both functions' bodies were identical to bone_transform save for picking out the respective component/s
- Reordered bone_transform to be declared / defined first; syntactic hint that it's logically upstream of them
@themrdemonized themrdemonized changed the base branch from all-in-one-vs2022-wpo to lander April 24, 2025 06:17
@themrdemonized themrdemonized merged commit 94cb46f into themrdemonized:lander Apr 24, 2025
themrdemonized added a commit that referenced this pull request Apr 25, 2025
Reduce code duplication in bone_position / bone_direction

(cherry picked from commit 94cb46f)
@ProfLander ProfLander deleted the bone-transform-refactor branch May 24, 2025 06:12
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