Просмотр исходного кода

SceneOptimizer: Fix wrong reference to _logDebugInfo (#30711)

Co-authored-by: Samuel Rigaud <srigaud@duodisplay.com>
Samuel Rigaud 1 год назад
Родитель
Сommit
4c5d1b5657
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      examples/jsm/utils/SceneOptimizer.js

+ 2 - 2
examples/jsm/utils/SceneOptimizer.js

@@ -346,7 +346,7 @@ class SceneOptimizer {
 	/**
 	 * Removes the given array of meshes from the scene.
 	 *
-	 * @param {Array<Mesh>} meshesToRemove - The meshes to remove.
+	 * @param {Set<Mesh>} meshesToRemove - The meshes to remove.
 	 */
 	disposeMeshes( meshesToRemove ) {
 
@@ -419,7 +419,7 @@ class SceneOptimizer {
 				reductionRatio: ( ( 1 - totalFinalMeshes / totalOriginalMeshes ) * 100 ).toFixed( 1 ),
 			};
 
-			this.logDebugInfo( stats );
+			this._logDebugInfo( stats );
 
 		}
 

粤ICP备19079148号