|
@@ -6116,7 +6116,7 @@ var BABYLON;
|
|
}
|
|
}
|
|
//At this point size can be a number, or an object (according to engine.prototype.createRenderTargetTexture method)
|
|
//At this point size can be a number, or an object (according to engine.prototype.createRenderTargetTexture method)
|
|
var texture = new BABYLON.RenderTargetTexture("screenShot", size, scene, false, false, BABYLON.Engine.TEXTURETYPE_UNSIGNED_INT, false, BABYLON.Texture.NEAREST_SAMPLINGMODE);
|
|
var texture = new BABYLON.RenderTargetTexture("screenShot", size, scene, false, false, BABYLON.Engine.TEXTURETYPE_UNSIGNED_INT, false, BABYLON.Texture.NEAREST_SAMPLINGMODE);
|
|
- texture.renderList = scene.meshes;
|
|
|
|
|
|
+ texture.renderList = null;
|
|
texture.samples = samples;
|
|
texture.samples = samples;
|
|
texture.onAfterRenderObservable.add(function () {
|
|
texture.onAfterRenderObservable.add(function () {
|
|
Tools.DumpFramebuffer(width, height, engine, successCallback, mimeType);
|
|
Tools.DumpFramebuffer(width, height, engine, successCallback, mimeType);
|
|
@@ -28605,7 +28605,7 @@ var BABYLON;
|
|
for (var j = 0; j < influencers - 1; j++) {
|
|
for (var j = 0; j < influencers - 1; j++) {
|
|
weight += matricesWeights[i + j];
|
|
weight += matricesWeights[i + j];
|
|
}
|
|
}
|
|
- matricesWeights[i + (influencers - 1)] = Math.max(0, 1.0 - weight);
|
|
|
|
|
|
+ matricesWeights[i + (influencers - 1)] += Math.max(0, 1.0 - weight);
|
|
}
|
|
}
|
|
};
|
|
};
|
|
Geometry.Parse = function (parsedVertexData, scene, rootUrl) {
|
|
Geometry.Parse = function (parsedVertexData, scene, rootUrl) {
|
|
@@ -46494,7 +46494,7 @@ var BABYLON;
|
|
}
|
|
}
|
|
var checkReady = function () {
|
|
var checkReady = function () {
|
|
var subMesh = subMeshes[currentIndex];
|
|
var subMesh = subMeshes[currentIndex];
|
|
- if (_this.isReady(subMesh, options ? options.useInstances : false)) {
|
|
|
|
|
|
+ if (_this._scene && _this._scene.getEngine() && _this.isReady(subMesh, options ? options.useInstances : false)) {
|
|
currentIndex++;
|
|
currentIndex++;
|
|
if (currentIndex >= subMeshes.length) {
|
|
if (currentIndex >= subMeshes.length) {
|
|
if (onCompiled) {
|
|
if (onCompiled) {
|
|
@@ -47883,7 +47883,7 @@ var BABYLON;
|
|
var type = fileToLoad.type;
|
|
var type = fileToLoad.type;
|
|
var entry = void 0;
|
|
var entry = void 0;
|
|
fileToLoad.correctName = name_1;
|
|
fileToLoad.correctName = name_1;
|
|
- if (event.dataTransfer.items) {
|
|
|
|
|
|
+ if (event.dataTransfer && event.dataTransfer.items) {
|
|
var item = event.dataTransfer.items[i];
|
|
var item = event.dataTransfer.items[i];
|
|
if (item.getAsEntry) {
|
|
if (item.getAsEntry) {
|
|
entry = item.getAsEntry();
|
|
entry = item.getAsEntry();
|