8000 Updated builds. · robinboot/three.js@8d48ad6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d48ad6

Browse files
committed
Updated builds.
1 parent 13de4a6 commit 8d48ad6

File tree

4 files changed

+28
-30
lines changed

4 files changed

+28
-30
lines changed

build/three.cjs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
Object.defineProperty(exports, '__esModule', { value: true });
99

10-
const REVISION = '140';
10+
const REVISION = '141dev';
1111
const MOUSE = {
1212
LEFT: 0,
1313
MIDDLE: 1,
@@ -2674,7 +2674,8 @@ class WebGLRenderTarget extends EventDispatcher {
26742674
this.texture = source.texture.clone();
26752675
this.texture.isRenderTargetTexture = true; // ensure image object is not shared, see #20328
26762676

2677-
this.texture.image = Object.assign({}, source.texture.image);
2677+
const image = Object.assign({}, source.texture.image);
2678+
this.texture.source = new Source(image);
26782679
this.depthBuffer = source.depthBuffer;
26792680
this.stencilBuffer = source.stencilBuffer;
26802681
if (source.depthTexture !== null) this.depthTexture = source.depthTexture.clone();
@@ -18322,7 +18323,7 @@ class WebXRManager extends EventDispatcher {
1832218323
function onSessionEvent(event) {
1832318324
const controller = inputSourcesMap.get(event.inputSource);
1832418325

18325-
if (controller) {
18326+
if (controller !== undefined) {
1832618327
controller.dispatchEvent({
1832718328
type: event.type,
1832818329
data: event.inputSource
@@ -18332,7 +18333,9 @@ class WebXRManager extends EventDispatcher {
1833218333

1833318334
function onSessionEnd() {
1833418335
inputSourcesMap.forEach(function (controller, inputSource) {
18335-
controller.disconnect(inputSource);
18336+
if (controller !== undefined) {
18337+
controller.disconnect(inputSource);
18338+
}
1833618339
});
1833718340
inputSourcesMap.clear();
1833818341
_currentDepthNear = null;
@@ -20487,11 +20490,6 @@ function WebGLRenderer(parameters = {}) {
2048720490
};
2048820491

2048920492
this.copyFramebufferToTexture = function (position, texture, level = 0) {
20490-
if (texture.isFramebufferTexture !== true) {
20491-
console.error('THREE.WebGLRenderer: copyFramebufferToTexture() can only be used with FramebufferTexture.');
20492-
return;
20493-
}
20494-
2049520493
const levelScale = Math.pow(2, -level);
2049620494
const width = Math.floor(texture.image.width * levelScale);
2049720495
const height = Math.floor(texture.image.height * levelScale);
@@ -25510,6 +25508,7 @@ function toJSON$1(shapes, options, data) {
2551025508
data.shapes.push(shapes.uuid);
2551125509
}
2551225510

25511+
data.options = Object.assign({}, options);
2551325512
if (options.extrudePath !== undefined) data.options.extrudePath = options.extrudePath.toJSON();
2551425513
return data;
2551525514
}

build/three.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.THREE = {}));
1010
})(this, (function (exports) { 'use strict';
1111

12-
const REVISION = '140';
12+
const REVISION = '141dev';
1313
const MOUSE = {
1414
LEFT: 0,
1515
MIDDLE: 1,
@@ -2676,7 +2676,8 @@
26762676
this.texture = source.texture.clone();
26772677
this.texture.isRenderTargetTexture = true; // ensure image object is not shared, see #20328
26782678

2679-
this.texture.image = Object.assign({}, source.texture.image);
2679+
const image = Object.assign({}, source.texture.image);
2680+
this.texture.source = new Source(image);
26802681
this.depthBuffer = source.depthBuffer;
26812682
this.stencilBuffer = source.stencilBuffer;
26822683
if (source.depthTexture !== null) this.depthTexture = source.depthTexture.clone();
@@ -18324,7 +18325,7 @@
1832418325
function onSessionEvent(event) {
1832518326
const controller = inputSourcesMap.get(event.inputSource);
1832618327

18327-
if (controller) {
18328+
if (controller !== undefined) {
1832818329
c E864 ontroller.dispatchEvent({
1832918330
type: event.type,
1833018331
data: event.inputSource
@@ -18334,7 +18335,9 @@
1833418335

1833518336
function onSessionEnd() {
1833618337
inputSourcesMap.forEach(function (controller, inputSource) {
18337-
controller.disconnect(inputSource);
18338+
if (controller !== undefined) {
18339+
controller.disconnect(inputSource);
18340+
}
1833818341
});
1833918342
inputSourcesMap.clear();
1834018343
_currentDepthNear = null;
@@ -20489,11 +20492,6 @@
2048920492
};
2049020493

2049120494
this.copyFramebufferToTexture = function (position, texture, level = 0) {
20492-
if (texture.isFramebufferTexture !== true) {
20493-
console.error('THREE.WebGLRenderer: copyFramebufferToTexture() can only be used with FramebufferTexture.');
20494-
return;
20495-
}
20496-
2049720495
const levelScale = Math.pow(2, -level);
2049820496
const width = Math.floor(texture.image.width * levelScale);
2049920497
const height = Math.floor(texture.image.height * levelScale);
@@ -25512,6 +25510,7 @@
2551225510
data.shapes.push(shapes.uuid);
2551325511
}
2551425512

25513+
data.options = Object.assign({}, options);
2551525514
if (options.extrudePath !== undefined) data.options.extrudePath = options.extrudePath.toJSON();
2551625515
return data;
2551725516
}

build/three.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/three.module.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright 2010-2022 Three.js Authors
44
* SPDX-License-Identifier: MIT
55
*/
6-
const REVISION = '140';
6+
const REVISION = '141dev';
77
const MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 };
88
const TOUCH = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 };
99
const CullFaceNone = 0;
@@ -3416,7 +3416,8 @@ class WebGLRenderTarget extends EventDispatcher {
34163416

34173417
// ensure image object is not shared, see #20328
34183418

3419-
this.texture.image = Object.assign( {}, source.texture.image );
3419+
const image = Object.assign( {}, source.texture.image );
3420+
this.texture.source = new Source( image );
34203421

34213422
this.depthBuffer = source.depthBuffer;
34223423
this.stencilBuffer = source.stencilBuffer;
@@ -24869,7 +24870,7 @@ class WebXRManager extends EventDispatcher {
2486924870

2487024871
const controller = inputSourcesMap.get( event.inputSource );
2487124872

24872-
if ( controller ) {
24873+
if ( controller !== undefined ) {
2487324874

2487424875
controller.dispatchEvent( { type: event.type, data: event.inputSource } );
2487524876

@@ -24881,7 +24882,11 @@ class WebXRManager extends EventDispatcher {
2488124882

2488224883
inputSourcesMap.forEach( function ( controller, inputSource ) {
2488324884

24884-
controller.disconnect( inputSource );
24885+
if ( controller !== undefined ) {
24886+
24887+
controller.disconnect( inputSource );
24888+
24889+
}
2488524890

2488624891
} );
2488724892

@@ -28034,13 +28039,6 @@ function WebGLRenderer( parameters = {} ) {
2803428039

2803528040
this.copyFramebufferToTexture = function ( position, texture, level = 0 ) {
2803628041

28037-
if ( texture.isFramebufferTexture !== true ) {
28038-
28039-
console.error( 'THREE.WebGLRenderer: copyFramebufferToTexture() can only be used with FramebufferTexture.' );
28040-
return;
28041-
28042-
}
28043-
2804428042
const levelScale = Math.pow( 2, - level );
2804528043
const width = Math.floor( texture.image.width * levelScale );
2804628044
const height = Math.floor( texture.image.height * levelScale );
@@ -35193,6 +35191,8 @@ function toJSON$1( shapes, options, data ) {
3519335191

3519435192
}
3519535193

35194+
data.options = Object.assign( {}, options );
35195+
3519635196
if ( options.extrudePath !== undefined ) data.options.extrudePath = options.extrudePath.toJSON();
3519735197

3519835198
return data;

0 commit comments

Comments
 (0)
0