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

View File

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

View File

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