buildIdTOObject slowly

beta.r3js.org
-=yb4f310 2017-06-18 12:27:07 +02:00
parent 8e5c3d1d04
commit 5398cebcbe
3 changed files with 10 additions and 8 deletions

View File

@ -58,13 +58,13 @@ GameLib.Component.prototype.getDependencies = function() {
for (var property in this.linkedObjects) { for (var property in this.linkedObjects) {
// if ( if (
// property === 'parentMesh' || property === 'parentMesh' ||
// property === 'parentScene' || property === 'parentScene' ||
// property === 'parentEntity' property === 'parentEntity'
// ) { ) {
// continue; continue;
// } }
//TODO array linked objects //TODO array linked objects
if (this.linkedObjects.hasOwnProperty(property)){ if (this.linkedObjects.hasOwnProperty(property)){

View File

@ -42,6 +42,8 @@ GameLib.D3.Scene = function (
if (apiMesh instanceof GameLib.D3.API.Mesh) { if (apiMesh instanceof GameLib.D3.API.Mesh) {
apiMesh.parentScene = this;
return new GameLib.D3.Mesh( return new GameLib.D3.Mesh(
this.graphics, this.graphics,
apiMesh apiMesh

View File

@ -878,7 +878,7 @@ GameLib.GUI.prototype.buildSelectControl = function(folder, object, property, en
/** /**
* Properties changed - rebuild the object list in the parent * Properties changed - rebuild the object list in the parent
*/ */
console.log('parentObject.buildIdToObject();'); parentObject.buildIdToObject();
/** /**
* Properties changed - rebuild GUI * Properties changed - rebuild GUI