Skip to content

Fix RebuildHumanAvatar so it works in play mode#2764

Merged
ousttrue merged 2 commits intovrm-c:masterfrom
decentraland:async-rebuild-human-avatar
Feb 18, 2026
Merged

Fix RebuildHumanAvatar so it works in play mode#2764
ousttrue merged 2 commits intovrm-c:masterfrom
decentraland:async-rebuild-human-avatar

Conversation

@AnsisMalins
Copy link
Contributor

Object.Destroy takes a frame to fully take effect. You cannot destroy a component and add a new one of the same type in the same frame if it does not allow multiple instances. Object.DestroyImmediate cannot be used in play mode and in builds.

The existing editor code that calls these functions does not need to change because the asynchronous code path is not taken in that case.

Copy link
Contributor

@ousttrue ousttrue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@ousttrue ousttrue merged commit 6db97ef into vrm-c:master Feb 18, 2026
1 check passed
@ousttrue
Copy link
Contributor

👍

@AnsisMalins AnsisMalins deleted the async-rebuild-human-avatar branch February 18, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments