Browse Source

Fixing issue with instances merging

David Catuhe 9 năm trước cách đây
mục cha
commit
f30c0af961

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/babylon.core.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1311 - 1311
dist/preview release/babylon.d.ts


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/babylon.js


+ 2 - 2
dist/preview release/babylon.max.js

@@ -14233,8 +14233,8 @@ var BABYLON;
             enumerable: true,
             configurable: true
         });
-        InstancedMesh.prototype.getVerticesData = function (kind) {
-            return this._sourceMesh.getVerticesData(kind);
+        InstancedMesh.prototype.getVerticesData = function (kind, copyWhenShared) {
+            return this._sourceMesh.getVerticesData(kind, copyWhenShared);
         };
         InstancedMesh.prototype.isVerticesDataPresent = function (kind) {
             return this._sourceMesh.isVerticesDataPresent(kind);

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/babylon.noworker.js


+ 2 - 2
src/Mesh/babylon.instancedMesh.js

@@ -71,8 +71,8 @@ var BABYLON;
             enumerable: true,
             configurable: true
         });
-        InstancedMesh.prototype.getVerticesData = function (kind) {
-            return this._sourceMesh.getVerticesData(kind);
+        InstancedMesh.prototype.getVerticesData = function (kind, copyWhenShared) {
+            return this._sourceMesh.getVerticesData(kind, copyWhenShared);
         };
         InstancedMesh.prototype.isVerticesDataPresent = function (kind) {
             return this._sourceMesh.isVerticesDataPresent(kind);

+ 2 - 2
src/Mesh/babylon.instancedMesh.ts

@@ -59,8 +59,8 @@
             return this._sourceMesh;
         }
 
-        public getVerticesData(kind: string): number[] | Float32Array {
-            return this._sourceMesh.getVerticesData(kind);
+        public getVerticesData(kind: string, copyWhenShared?: boolean): number[] | Float32Array {
+            return this._sourceMesh.getVerticesData(kind, copyWhenShared);
         }
 
         public isVerticesDataPresent(kind: string): boolean {