提交 62c93cc6 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #11348 from sjvs/dev

Fix lgtm.com alerts: equality tests
......@@ -427,7 +427,7 @@ THREE.MMDLoader.prototype.pourVmdIntoCamera = function ( camera, vmd, name ) {
var clip = new THREE.AnimationClip( name === undefined ? THREE.Math.generateUUID() : name, -1, tracks );
if ( clip !== null ) {
if ( clip != null ) {
if ( camera.center === undefined ) camera.center = new THREE.Vector3( 0, 0, 0 );
if ( camera.animations === undefined ) camera.animations = [];
......@@ -1587,7 +1587,7 @@ THREE.MMDLoader.prototype.createAnimation = function ( mesh, vmd, name ) {
var clip = new THREE.AnimationClip( name === undefined ? THREE.Math.generateUUID() : name, -1, tracks );
if ( clip !== null ) {
if ( clip != null ) {
if ( mesh.geometry.animations === undefined ) mesh.geometry.animations = [];
mesh.geometry.animations.push( clip );
......@@ -1629,7 +1629,7 @@ THREE.MMDLoader.prototype.createAnimation = function ( mesh, vmd, name ) {
var clip = new THREE.AnimationClip( name === undefined ? THREE.Math.generateUUID() : name + 'Morph', -1, tracks );
if ( clip !== null ) {
if ( clip != null ) {
if ( mesh.geometry.animations === undefined ) mesh.geometry.animations = [];
mesh.geometry.animations.push( clip );
......
......@@ -29,7 +29,7 @@ THREE.OBJLoader2.WWOBJLoader2 = (function () {
// check worker support first
if ( window.Worker === undefined ) throw "This browser does not support web workers!";
if ( window.Blob === undefined ) throw "This browser does not support Blob!";
if ( ! typeof window.URL.createObjectURL === 'function' ) throw "This browser does not support Object creation from URL!";
if ( typeof window.URL.createObjectURL !== 'function' ) throw "This browser does not support Object creation from URL!";
this.instanceNo = 0;
this.worker = null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册