Преглед изворни кода

Merge pull request #9806 from Popov72/fix-thininstance-paramdef

ThinInstances: Fix optional ts parameters (2)
sebavan пре 4 година
родитељ
комит
b29c34085d
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      src/Meshes/thinInstanceMesh.ts

+ 3 - 3
src/Meshes/thinInstanceMesh.ts

@@ -60,7 +60,7 @@ declare module "./mesh" {
          * @param stride size in floats of each value of the buffer
          * @param staticBuffer indicates that the buffer is static, so that you won't change it after it is set (better performances - false by default)
          */
-        thinInstanceSetBuffer(kind: string, buffer: Nullable<Float32Array>,  stride: number, staticBuffer: boolean): void;
+        thinInstanceSetBuffer(kind: string, buffer: Nullable<Float32Array>,  stride?: number, staticBuffer?: boolean): void;
 
         /**
          * Gets the list of world matrices
@@ -87,13 +87,13 @@ declare module "./mesh" {
          * Refreshes the bounding info, taking into account all the thin instances defined
          * @param forceRefreshParentInfo true to force recomputing the mesh bounding info and use it to compute the aggregated bounding info
          */
-        thinInstanceRefreshBoundingInfo(forceRefreshParentInfo: boolean): void;
+        thinInstanceRefreshBoundingInfo(forceRefreshParentInfo?: boolean): void;
 
         /** @hidden */
         _thinInstanceInitializeUserStorage(): void;
 
         /** @hidden */
-        _thinInstanceUpdateBufferSize(kind: string, numInstances: number): void;
+        _thinInstanceUpdateBufferSize(kind: string, numInstances?: number): void;
 
         /** @hidden */
         _userThinInstanceBuffersStorage: {