remove some warnings and todos
parent
4fbd3424c6
commit
8d0a0c6840
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue