Explorar el Código

Fix Unity .babylon Deserialization

sebavan hace 6 años
padre
commit
a3838a6416
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/Materials/Textures/cubeTexture.ts

+ 2 - 0
src/Materials/Textures/cubeTexture.ts

@@ -358,3 +358,5 @@ export class CubeTexture extends BaseTexture {
 }
 
 Texture._CubeTextureParser = CubeTexture.Parse;
+// Some exporters relies on Tools.Instantiate
+_TypeStore.RegisteredTypes["BABYLON.CubeTexture"] = CubeTexture;