buildIdTOObject slowly
parent
8e5c3d1d04
commit
5398cebcbe
|
@ -58,13 +58,13 @@ GameLib.Component.prototype.getDependencies = function() {
|
|||
|
||||
for (var property in this.linkedObjects) {
|
||||
|
||||
// if (
|
||||
// property === 'parentMesh' ||
|
||||
// property === 'parentScene' ||
|
||||
// property === 'parentEntity'
|
||||
// ) {
|
||||
// continue;
|
||||
// }
|
||||
if (
|
||||
property === 'parentMesh' ||
|
||||
property === 'parentScene' ||
|
||||
property === 'parentEntity'
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
|
||||
//TODO array linked objects
|
||||
if (this.linkedObjects.hasOwnProperty(property)){
|
||||
|
|
|
@ -42,6 +42,8 @@ GameLib.D3.Scene = function (
|
|||
|
||||
if (apiMesh instanceof GameLib.D3.API.Mesh) {
|
||||
|
||||
apiMesh.parentScene = this;
|
||||
|
||||
return new GameLib.D3.Mesh(
|
||||
this.graphics,
|
||||
apiMesh
|
||||
|
|
|
@ -878,7 +878,7 @@ GameLib.GUI.prototype.buildSelectControl = function(folder, object, property, en
|
|||
/**
|
||||
* Properties changed - rebuild the object list in the parent
|
||||
*/
|
||||
console.log('parentObject.buildIdToObject();');
|
||||
parentObject.buildIdToObject();
|
||||
|
||||
/**
|
||||
* Properties changed - rebuild GUI
|
||||
|
|
Loading…
Reference in New Issue