Kingdom-of-The-Moon / FiguraRewriteRewrite

rewrite of the rewrite of figura
GNU Lesser General Public License v2.1
1 stars 1 forks source link

"Skull" parent type is not hidden even when its parent part is hidden #70

Closed Gakuto1112 closed 1 year ago

Gakuto1112 commented 1 year ago

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

  1. Create a model with a structure like above.
  2. Apply this avatar as your Figura avatar.
  3. Get your player head by running /give @p minecraft:player_head{SkullOwner:"<your_player_name>"}.
  4. Put your head.
  5. Hide head's parent by running /figura run models.model:setVisible(false).
  6. 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.

The screenshot which shows this issue

Enveronments

Notes

Francy-chan commented 1 year ago

based on 77b459f, that work as inteded