Skip to content

Stop hardcoding skeleton type to flex#3397

Merged
briaguya0 merged 1 commit intoHarbourMasters:develop-macreadyfrom
garrettjoecox:stop-hardcoding-skeleton-type
Nov 14, 2023
Merged

Stop hardcoding skeleton type to flex#3397
briaguya0 merged 1 commit intoHarbourMasters:develop-macreadyfrom
garrettjoecox:stop-hardcoding-skeleton-type

Conversation

@garrettjoecox
Copy link
Contributor

@garrettjoecox garrettjoecox commented Nov 14, 2023

For an unknown reason, since the introduction of custom models we had hardcoded their skeleton type to SkeletonType::Flex.

This seemingly did not cause any issues, because regardless of skeleton type the actor files had inline draw calls that determined how the skeleton should be drawn.

This was changed in 8.0.0 #2979 in which all actors now ensure to check the skeleton type before attempting to draw. This change now meant that all custom models were now rendered as SkeletonType::Flex, whether their exported type was flex or not, leading to unknown behavior and/or crashes with all models that aren't specifically meant to be using SkeletonType::Flex.

This PR also removes the hardcoding of LimbType, it doesn't seem like fast64 exports this for now, but if/when we want it to this should account for it.

Build Artifacts

}
}

skel->type = SkeletonType::Flex;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The diff might make it hard to see, but this was the issue, we were parsing the SkeletonType, then just re-setting it afterwards
Screenshot 2023-11-14 at 9 46 05 AM

Copy link
Contributor

@briaguya0 briaguya0 left a comment

Choose a reason for hiding this comment

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

:shipit:

@briaguya0 briaguya0 merged commit bf31f2b into HarbourMasters:develop-macready Nov 14, 2023
@garrettjoecox garrettjoecox deleted the stop-hardcoding-skeleton-type branch March 4, 2024 15:30
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