We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f104414 commit fbdcb7eCopy full SHA for fbdcb7e
1 file changed
packages/library/src/components/hosts/TextureHost.ts
@@ -26,7 +26,13 @@ export class TextureHost {
26
}
27
28
29
- static removeChild(parentInstance: BabylonEntity, child: AugmentedTexture): void {}
+ static removeChild(parentInstance: BabylonEntity, child: AugmentedTexture): void {
30
+ const textureType = child.kind;
31
+ if (textureType in parentInstance) {
32
+ //@ts-ignore
33
+ parentInstance[textureType] = null;
34
+ }
35
36
37
static prepareUpdate(): UpdatePayload {
38
return {};
0 commit comments