Explorar el Código

Examples: Fix memory leak in FBX demo. (#31068)

Michael Herzog hace 8 meses
padre
commit
0e317c0b91
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      examples/webgl_loader_fbx.html

+ 6 - 0
examples/webgl_loader_fbx.html

@@ -128,6 +128,12 @@
 
 						object.traverse( function ( child ) {
 
+							if ( child.isSkinnedMesh ) {
+
+								child.skeleton.dispose();
+
+							}
+
 							if ( child.material ) {
 
 								const materials = Array.isArray( child.material ) ? child.material : [ child.material ];

粤ICP备19079148号