Bug Closed · Resolved

ModeledEntities break when trying to remove an ActiveModel

#4511 opened by Unknown 2 years ago

Unknownreported this bug

When attempting to use ModeledEntity.removeModel(), the ActiveModel display does not disappear, and any other models applied to the entity become desynced, still playing out animations and rotating, but not updating their location to follow the entity. The model can be fully removed using ActiveModel.destroy(), but the same desync occurs for any new models applied to the ModeledEntity the destroyed model was applied to.

Unknowncommented

It seems trying to add a new model after one has been applied for a while already also breaks, the new model is desync'd from the entity's location.

Moving out of render distance and back in fixes the desync

Unknowncommented

Can you show your code?

Also, it is intentional that you can remove an ActiveModel from a ModeledEntity and it will remain in the world. This is for the special case where you want to move the ActiveModel from one ModeledEntity to another. You can remove the ActiveModel permanently by calling the destroy method.

Sign in to join the discussion.