Skip to content

fix: Leg folder rename jnt -> Joints and Mus -> Muscles#173

Open
bkje14 wants to merge 25 commits into
ammr4-betafrom
leg-jnt-rename
Open

fix: Leg folder rename jnt -> Joints and Mus -> Muscles#173
bkje14 wants to merge 25 commits into
ammr4-betafrom
leg-jnt-rename

Conversation

@bkje14

@bkje14 bkje14 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

This PR is the next step in unifying the bodymodel structure.

  • It renames the .Leg.Jnt folder into Leg.Joints
  • It renames Leg.Mus into Leg.Muscles
  • It moves the Leg.ModelParameters to Leg.Data.unscaled.ModelParameters
  • It renames Leg.DocLink to Leg.Documentation
  • it removes Leg.MusDrawRef as it was unused

It also re-arranges the folders in Leg to put the most relevant folders first.

There is a associated PR to the data repo for the auto generated files affected:
https://github.com/AnyBody/ammr-data/pull/16

@github-actions github-actions Bot added the fix label Jun 24, 2026
Comment thread Body/AAUHuman/BodyModels/GenericBodyModel/DeprecationMessages.any Outdated
@bkje14

bkje14 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

I currently can't make the default BM_COMPATIBILITY_BODYMODEL_STRUCTURE set to ON - we need a ams version with the fixed AnyMessageOnObjectUse class to test with in CI.

The intention:
By default the compatibility switch is on for AMMR 4.0 - this will make migration smoother for users as they will be able to load they models as-is and get informative warnings about what objects they are accessing.

We can then escalate from warning to error in a later 4.x version

@bkje14 bkje14 enabled auto-merge (squash) June 25, 2026 07:12
Comment thread .vscode/settings.json
@bkje14 bkje14 changed the title fix: Leg folder rename jnt -> Joints fix: Leg folder rename jnt -> Joints and Mus -> Muscles Jun 25, 2026
@bkje14 bkje14 requested a review from mdabt June 25, 2026 08:26

@mdabt mdabt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good.
A few small comments, some are actually unrelated to the topic of this PR

// The model will need the following quantities
// AnyVec3 Nodes
// AnyVec3 Segments
// AnyVec3 Segments

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Look odd, AnyVec3.
Are these colors? The we have AnyRGB (and AnyRGBs for an array)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think it is a old comment that has been copied around a lot. It is the same kind of comment that you marked here: #173 (comment)

Comment thread Body/AAUHuman/BodyModels/GenericBodyModel/ComponentTreeConfig.any
// **********************************************************
// This is a reference to where the colors for the model are located
// The model will need the following quantities
// AnyVec3 Nodes

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This comment looks strange

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

it is outdated - I think it tries to refer to what is expected inside the drawsettings.

Comment thread Body/AAUHuman/Leg2D/Mus.any
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants