From 8d0a0c68401c7ac782fd40abfd52e274e3413453 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sun, 18 Feb 2018 18:57:11 +0100 Subject: [PATCH] remove some warnings and todos --- src/game-lib-d3-geometry-a.js | 4 ++-- src/game-lib-d3-mesh-0.js | 6 +----- src/game-lib-d3-scene.js | 2 +- src/game-lib-d3-shadow-directional.js | 2 +- src/game-lib-system-storage.js | 2 +- 5 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/game-lib-d3-geometry-a.js b/src/game-lib-d3-geometry-a.js index 7fcab67..48329de 100644 --- a/src/game-lib-d3-geometry-a.js +++ b/src/game-lib-d3-geometry-a.js @@ -147,9 +147,9 @@ GameLib.D3.Geometry.prototype.updateInstance = function(property) { if (property === 'parentMesh') { if (this.parentMesh) { - console.log('geometry assigned to new parent mesh ' + this.parentMesh.name); + // console.log('geometry assigned to new parent mesh ' + this.parentMesh.name); } else { - console.log('geometry removed from parent'); + // console.log('geometry removed from parent'); } return; } diff --git a/src/game-lib-d3-mesh-0.js b/src/game-lib-d3-mesh-0.js index a40be34..b2172a9 100644 --- a/src/game-lib-d3-mesh-0.js +++ b/src/game-lib-d3-mesh-0.js @@ -195,8 +195,6 @@ GameLib.D3.Mesh.prototype.createInstance = function() { GameLib.Utils.Defined(this.parentScene.instance) ) { this.parentScene.addObject(this); - } else { - console.warn('parent scene not linked yet'); } this.instance.position.x = this.position.x; @@ -245,9 +243,7 @@ GameLib.D3.Mesh.prototype.createInstance = function() { */ this.morphTargetInfluences = this.instance.morphTargetInfluences; this.morphTargetDictionary = this.instance.morphTargetDictionary; - - console.log('mesh instance created: ' + this.name); - + GameLib.Component.prototype.createInstance.call(this); }; diff --git a/src/game-lib-d3-scene.js b/src/game-lib-d3-scene.js index ce9592d..5d1465d 100644 --- a/src/game-lib-d3-scene.js +++ b/src/game-lib-d3-scene.js @@ -376,7 +376,7 @@ GameLib.D3.Scene.prototype.addObject = function(object) { this.instance.add(object.instance); } } else { - console.warn('either scene or mesh instance not ready'); + // console.warn('either scene or mesh instance not ready'); } // if (this.parentEntity) { diff --git a/src/game-lib-d3-shadow-directional.js b/src/game-lib-d3-shadow-directional.js index d0a772f..b75968a 100644 --- a/src/game-lib-d3-shadow-directional.js +++ b/src/game-lib-d3-shadow-directional.js @@ -59,7 +59,7 @@ GameLib.D3.Shadow.Directional.prototype.updateInstance = function(property) { if (property === 'camera') { - console.warn('todo: updateInstance for directional shadow camera instance'); + //console.warn('todo: updateInstance for directional shadow camera instance'); return; } diff --git a/src/game-lib-system-storage.js b/src/game-lib-system-storage.js index ebd0d7c..a5fde24 100644 --- a/src/game-lib-system-storage.js +++ b/src/game-lib-system-storage.js @@ -858,7 +858,7 @@ GameLib.System.Storage.prototype.loadImage = function(data, callback, errorCallb window.URL = window.URL || window.webkitURL; - console.log(image.name + ' - response type : ' + this.response.type); + //console.log(image.name + ' - response type : ' + this.response.type); var url;