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 (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;
}

View File

@ -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);
};

View File

@ -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) {

View File

@ -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;
}

View File

@ -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;