瀏覽代碼

Rollback removing the refreshBoundingInfo call

Popov72 5 年之前
父節點
當前提交
0fb912abe7
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      loaders/src/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.ts

+ 1 - 0
loaders/src/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.ts

@@ -104,6 +104,7 @@ export class EXT_mesh_gpu_instancing implements IGLTFLoaderExtension {
                             translationBuffer && Vector3.FromArrayToRef(translationBuffer, i * 3, babylonInstancedMesh.position);
                             rotationBuffer && Quaternion.FromArrayToRef(rotationBuffer, i * 4, babylonInstancedMesh.rotationQuaternion!);
                             scaleBuffer && Vector3.FromArrayToRef(scaleBuffer, i * 3, babylonInstancedMesh.scaling);
+                            babylonInstancedMesh.refreshBoundingInfo();
                         }
                     }