|
@@ -6768,6 +6768,17 @@ var BABYLON;
|
|
}
|
|
}
|
|
return fn;
|
|
return fn;
|
|
};
|
|
};
|
|
|
|
+ /**
|
|
|
|
+ * Provides a slice function that will work even on IE
|
|
|
|
+ * @param data defines the array to slice
|
|
|
|
+ * @returns the new sliced array
|
|
|
|
+ */
|
|
|
|
+ Tools.Slice = function (data) {
|
|
|
|
+ if (data.slice) {
|
|
|
|
+ return data.slice();
|
|
|
|
+ }
|
|
|
|
+ return Array.prototype.slice.call(data);
|
|
|
|
+ };
|
|
Tools.SetImmediate = function (action) {
|
|
Tools.SetImmediate = function (action) {
|
|
if (window.setImmediate) {
|
|
if (window.setImmediate) {
|
|
window.setImmediate(action);
|
|
window.setImmediate(action);
|
|
@@ -25884,7 +25895,7 @@ var BABYLON;
|
|
Mesh.prototype._getPositionData = function (applySkeleton) {
|
|
Mesh.prototype._getPositionData = function (applySkeleton) {
|
|
var data = this.getVerticesData(BABYLON.VertexBuffer.PositionKind);
|
|
var data = this.getVerticesData(BABYLON.VertexBuffer.PositionKind);
|
|
if (data && applySkeleton && this.skeleton) {
|
|
if (data && applySkeleton && this.skeleton) {
|
|
- data = data.slice();
|
|
|
|
|
|
+ data = BABYLON.Tools.Slice(data);
|
|
var matricesIndicesData = this.getVerticesData(BABYLON.VertexBuffer.MatricesIndicesKind);
|
|
var matricesIndicesData = this.getVerticesData(BABYLON.VertexBuffer.MatricesIndicesKind);
|
|
var matricesWeightsData = this.getVerticesData(BABYLON.VertexBuffer.MatricesWeightsKind);
|
|
var matricesWeightsData = this.getVerticesData(BABYLON.VertexBuffer.MatricesWeightsKind);
|
|
if (matricesWeightsData && matricesIndicesData) {
|
|
if (matricesWeightsData && matricesIndicesData) {
|