Jelajahi Sumber

Better dispose doc

David Catuhe 7 tahun lalu
induk
melakukan
8e575e10fc
2 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 0 1
      src/Mesh/babylon.abstractMesh.ts
  2. 3 2
      src/Mesh/babylon.mesh.ts

+ 0 - 1
src/Mesh/babylon.abstractMesh.ts

@@ -1296,7 +1296,6 @@
 
         /**
          * Disposes the AbstractMesh.  
-         * Some internal references are kept for further use.  
          * By default, all the mesh children are also disposed unless the parameter `doNotRecurse` is set to `true`.  
          * Returns nothing.  
          */

+ 3 - 2
src/Mesh/babylon.mesh.ts

@@ -1582,8 +1582,9 @@
         }
 
         /**
-         * Disposes the mesh.
-         * This also frees the memory allocated under the hood to all the buffers used by WebGL.
+         * Disposes the Mesh.  
+         * By default, all the mesh children are also disposed unless the parameter `doNotRecurse` is set to `true`.  
+         * Returns nothing.  
          */
         public dispose(doNotRecurse?: boolean, disposeMaterialAndTextures: boolean = false): void {
             this.morphTargetManager = null;