Added conditions when importing from a pre-DT saved pose file. #1383
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds a method to determine whether a pose file was saved prior to DT, and would thus be missing the new face bones. I determine this by checking if the "tongue-A" bone is present in the file, which is a bone introduced in DT and is common to all races and genders.
The first use of this is for the general import button, which loads all bones and their rotations. We want to skip loading the face bones. This will prevent characters from having a scrunched face when loading old poses, and allow users to make use of expressions they enter gpose with.
This second use of this involves loading expressions specifically, which is defined as loading selected bones by the three main posing modes (rotation, scale, and position). There will be a dialog which warns users they are attempting to load an expression from an old, pre-DT pose file and restore the scale and position checkboxes if the user decides to cancel.