提交 207e56a5 编写于 作者: M Mr.doob

Updated builds.

上级 16916e20
......@@ -7719,6 +7719,9 @@
delete this.attributes[name];
return this;
},
hasAttribute: function hasAttribute(name) {
return this.attributes[name] !== undefined;
},
addGroup: function addGroup(start, count, materialIndex) {
this.groups.push({
start: start,
......@@ -12059,11 +12062,11 @@
morphInfluences[_i4] = value;
morphInfluencesSum += value;
} else {
if (morphTargets && geometry.getAttribute('morphTarget' + _i4) !== undefined) {
if (morphTargets && geometry.hasAttribute('morphTarget' + _i4) === true) {
geometry.deleteAttribute('morphTarget' + _i4);
}
if (morphNormals && geometry.getAttribute('morphNormal' + _i4) !== undefined) {
if (morphNormals && geometry.hasAttribute('morphNormal' + _i4) === true) {
geometry.deleteAttribute('morphNormal' + _i4);
}
......@@ -15231,9 +15234,20 @@
currentTextureSlot = null;
currentBoundTextures = {};
currentProgram = null;
currentBlendingEnabled = null;
currentBlending = null;
currentBlendEquation = null;
currentBlendSrc = null;
currentBlendDst = null;
currentBlendEquationAlpha = null;
currentBlendSrcAlpha = null;
currentBlendDstAlpha = null;
currentPremultipledAlpha = false;
currentFlipSided = null;
currentCullFace = null;
currentLineWidth = null;
currentPolygonOffsetFactor = null;
currentPolygonOffsetUnits = null;
colorBuffer.reset();
depthBuffer.reset();
stencilBuffer.reset();
......@@ -16372,7 +16386,7 @@
var grip = this._grip;
var hand = this._hand;
if (inputSource) {
if (inputSource && frame.session.visibilityState !== 'visible-blurred') {
if (hand && inputSource.hand) {
handPose = true;
此差异已折叠。
......@@ -9779,6 +9779,12 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
},
hasAttribute: function ( name ) {
return this.attributes[ name ] !== undefined;
},
addGroup: function ( start, count, materialIndex ) {
this.groups.push( {
......@@ -15567,13 +15573,13 @@ function WebGLMorphtargets( gl ) {
} else {
if ( morphTargets && geometry.getAttribute( 'morphTarget' + i ) !== undefined ) {
if ( morphTargets && geometry.hasAttribute( 'morphTarget' + i ) === true ) {
geometry.deleteAttribute( 'morphTarget' + i );
}
if ( morphNormals && geometry.getAttribute( 'morphNormal' + i ) !== undefined ) {
if ( morphNormals && geometry.hasAttribute( 'morphNormal' + i ) === true ) {
geometry.deleteAttribute( 'morphNormal' + i );
......@@ -20171,11 +20177,24 @@ function WebGLState( gl, extensions, capabilities ) {
currentProgram = null;
currentBlendingEnabled = null;
currentBlending = null;
currentBlendEquation = null;
currentBlendSrc = null;
currentBlendDst = null;
currentBlendEquationAlpha = null;
currentBlendSrcAlpha = null;
currentBlendDstAlpha = null;
currentPremultipledAlpha = false;
currentFlipSided = null;
currentCullFace = null;
currentLineWidth = null;
currentPolygonOffsetFactor = null;
currentPolygonOffsetUnits = null;
colorBuffer.reset();
depthBuffer.reset();
stencilBuffer.reset();
......@@ -21847,7 +21866,7 @@ Object.assign( WebXRController.prototype, {
const grip = this._grip;
const hand = this._hand;
if ( inputSource ) {
if ( inputSource && frame.session.visibilityState !== 'visible-blurred' ) {
if ( hand && inputSource.hand ) {
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册