remove some warnings and todos

beta.r3js.org
-=yb4f310 2018-02-18 18:57:11 +01:00
parent 4fbd3424c6
commit 8d0a0c6840
5 changed files with 6 additions and 10 deletions

View File

@ -147,9 +147,9 @@ GameLib.D3.Geometry.prototype.updateInstance = function(property) {
if (property === 'parentMesh') { if (property === 'parentMesh') {
if (this.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 { } else {
console.log('geometry removed from parent'); // console.log('geometry removed from parent');
} }
return; return;
} }

View File

@ -195,8 +195,6 @@ GameLib.D3.Mesh.prototype.createInstance = function() {
GameLib.Utils.Defined(this.parentScene.instance) GameLib.Utils.Defined(this.parentScene.instance)
) { ) {
this.parentScene.addObject(this); this.parentScene.addObject(this);
} else {
console.warn('parent scene not linked yet');
} }
this.instance.position.x = this.position.x; this.instance.position.x = this.position.x;
@ -245,9 +243,7 @@ GameLib.D3.Mesh.prototype.createInstance = function() {
*/ */
this.morphTargetInfluences = this.instance.morphTargetInfluences; this.morphTargetInfluences = this.instance.morphTargetInfluences;
this.morphTargetDictionary = this.instance.morphTargetDictionary; this.morphTargetDictionary = this.instance.morphTargetDictionary;
console.log('mesh instance created: ' + this.name);
GameLib.Component.prototype.createInstance.call(this); GameLib.Component.prototype.createInstance.call(this);
}; };

View File

@ -376,7 +376,7 @@ GameLib.D3.Scene.prototype.addObject = function(object) {
this.instance.add(object.instance); this.instance.add(object.instance);
} }
} else { } else {
console.warn('either scene or mesh instance not ready'); // console.warn('either scene or mesh instance not ready');
} }
// if (this.parentEntity) { // if (this.parentEntity) {

View File

@ -59,7 +59,7 @@ GameLib.D3.Shadow.Directional.prototype.updateInstance = function(property) {
if (property === 'camera') { if (property === 'camera') {
console.warn('todo: updateInstance for directional shadow camera instance'); //console.warn('todo: updateInstance for directional shadow camera instance');
return; return;
} }

View File

@ -858,7 +858,7 @@ GameLib.System.Storage.prototype.loadImage = function(data, callback, errorCallb
window.URL = window.URL || window.webkitURL; 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; var url;