diff --git a/src/game-lib-a-component-a.js b/src/game-lib-a-component-a.js index 7b49ca0..f02a3cd 100644 --- a/src/game-lib-a-component-a.js +++ b/src/game-lib-a-component-a.js @@ -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)){ diff --git a/src/game-lib-d3-scene.js b/src/game-lib-d3-scene.js index 2915d65..4fcf286 100644 --- a/src/game-lib-d3-scene.js +++ b/src/game-lib-d3-scene.js @@ -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 diff --git a/src/game-lib-gui.js b/src/game-lib-gui.js index 37c461e..8002967 100644 --- a/src/game-lib-gui.js +++ b/src/game-lib-gui.js @@ -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