"Skull" parent type is not hidden even when its parent part is hidden
Gakuto1112 opened this issue · 1 comments
Description
"Skull" parent type is not hidden even when its parent part is hidden. For example, assume that there is a model with following structure.
model.bbmodel
└ Skull
└ Head
After running models.model:setVisible(false)
, models.model
will be hidden and models.model.Skull
also should be hidden because models.model.Skull
's visibility is not specified, so just follow parent's visilility. However, models.model.Skull
is not hidden even in this situation.
How to reproduce
- Create a model with a structure like above.
- Apply this avatar as your Figura avatar.
- Get your player head by running
/give @p minecraft:player_head{SkullOwner:"<your_player_name>"}
. - Put your head.
- Hide head's parent by running
/figura run models.model:setVisible(false)
. - You will see your head model even it is hidden.
An example avatar for reproduction is attached this issue. This avatar turns host player head into zombie's one, and has action wheel to show/hide skull model and show skull visibility.
Enveronments
- MacOS Ventura 13.2.1
- Minecraft 1.19.4
- Fabric Loader 0.14.17-1.19.4
- Fabric API 0.75.3+1.19.4
- Figura 0.1.0-rc.14
Notes
- An example avatar
- I confirm this issue with "Skull" parent type but there may be more than this.
based on 77b459f, that work as inteded