fix treating many anims as nudity=none #18

Merged
BorderOfExtacy merged 1 commit from tidgp/BOEPassion:fix/undresslevel_case into mergehell_2 2026-09-22 20:47:38 +00:00
Contributor

many animations do not undress at all when some undressing is expected.
this is because the <NakedFlags> value is treated as case-sensitive throughout the codebase.
that is not consistent with animation usage, which is apparently case-insensitive. for example, mike24 uses "Fullbody" instead of "FullBody".

this value is stored in the string fields ClipData.NudeType and Player.UndressLevel.

because stringly-typed values are prone to this kind of error (& also because some case-insensitive string comparison calls are bugged in this runtime), i replace this with an enum and handle the case-sensitivity issue in one place when the xml is parsed.
i also change the default from None to FullBody.

many animations do not undress at all when some undressing is expected. this is because the `<NakedFlags>` value is treated as case-sensitive throughout the codebase. that is not consistent with animation usage, which is apparently case-insensitive. for example, mike24 uses "Fullbody" instead of "FullBody". this value is stored in the string fields `ClipData.NudeType` and `Player.UndressLevel`. because stringly-typed values are prone to this kind of error (& also because some case-insensitive string comparison calls are bugged in this runtime), i replace this with an enum and handle the case-sensitivity issue in one place when the xml is parsed. i also change the default from `None` to `FullBody`.
BorderOfExtacy merged commit 2cd30842a8 into mergehell_2 2026-09-22 20:47:38 +00:00
Sign in to join this conversation.
No description provided.